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

auto_splitting feature: Add requests for auto splitter settings management #713

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

Refragg
Copy link
Contributor

@Refragg Refragg commented Aug 20, 2023

This patch adds 4 requests to the auto-splitting feature so that the library users are able to manage the auto splitter settings:

  • GetSettings: Gets all of the user settings that are meant to be shown to the runner
  • GetSettingsValue(key: String): Gets the SettingValue of a specific setting
  • SetSettingsValue(key: String, value: SettingValue): Sets the SettingValue of a specific setting
  • ReloadScript: Helper request that will reload the current script while keeping the same SettingsStore

These new requests are part of my ongoing work towards having the settings editable in the obs-livesplit-one UI, I have tested them to work as expected.

I don't know why the Windows i686 gnu build fails but it doesn't seem like it's related to this pull request?

This patch adds 4 requests to the auto-splitting feature so that the library users are able to manage the auto splitter settings:
- GetSettings: Gets all of the user settings that are meant to be shown to the runner
- GetSettingsValue(key: String): Gets the SettingValue of a specific setting
- SetSettingsValue(key: String, value: SettingValue): Sets the SettingValue of a specific setting
- ReloadScript: Helper request that will reload the current script while keeping the same SettingsStore

This adds 3 new possible errors to tell the user what could have went wrong while executing the requests.

It also re export some of the useful types for settings related things.

Lastly, there's a new accessor in the runtime to get the SettingsStore as mutable and UserSetting / UserSettingKind are now clonable so that we can pass them along with the requests.
@CryZe
Copy link
Collaborator

CryZe commented Aug 25, 2023

Ah yes, the CI is very green. Let's merge it.

@CryZe CryZe merged commit 488df3d into LiveSplit:master Aug 25, 2023
74 of 81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants