Skip to content

Comments

Add Config type to initialize Auto Splitters#712

Merged
CryZe merged 1 commit intoLiveSplit:masterfrom
CryZe:auto-splitter-config-builder
Aug 20, 2023
Merged

Add Config type to initialize Auto Splitters#712
CryZe merged 1 commit intoLiveSplit:masterfrom
CryZe:auto-splitter-config-builder

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
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