Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Config type to initialize Auto Splitters #712

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Aug 17, 2023

Rust does not have optional parameters, but we'd like to add more and especially optional parameters when initializing an auto splitter. We now provide a non-exhaustive Config type that has suitable default values, that all can be overridden. This also adds a new experimental setting for specifying an "interpreter script path", which allows us to experiment with auto splitters that by themselves implement a script engine and load a script from the file system to run. This script to load from the file system is communicated to the auto splitter via the SCRIPT_PATH environment variable.

Rust does not have optional parameters, but we'd like to add more and
especially optional parameters when initializing an auto splitter. We
now provide a non-exhaustive `Config` type that has suitable default
values, that all can be overridden. This also adds a new experimental
setting for specifying an "interpreter script path", which allows us to
experiment with auto splitters that by themselves implement a script
engine and load a script from the file system to run. This script to
load from the file system is communicated to the auto splitter via the
`SCRIPT_PATH` environment variable.
@CryZe CryZe added enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. code quality Affects the quality of the code. auto splitting This is about the auto splitting implementation. labels Aug 17, 2023
@CryZe CryZe added this to the v0.14 milestone Aug 17, 2023
@CryZe CryZe merged commit 8973c18 into LiveSplit:master Aug 20, 2023
80 of 81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto splitting This is about the auto splitting implementation. code quality Affects the quality of the code. enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant