Skip to content

Conversation

@fundale
Copy link

@fundale fundale commented Jan 28, 2026

Allows for specifying configuration options via CLI arguments,
Should in theory work with most Serializable options in ShowConfiguration.cs however I have not tested "complex" data structures.

Config is stacked in the following order, with 3 taking priority over 2, and 2 priority over 1:

  1. Default built-in
  2. Configuration file via -config-file=<path>
  3. Individual configuration options via -config-<option>=<value>

Loading a configuration file with the UI will override all configured launch configuration options set via launch flags.

Also note the ReadCLIConfig() call at the start is to fix a race condition with having no Config file set in flags,
It gets re-applied after the initial Config file load via -config-file, load button doesn't do this.

EXAMPLE: -config-file=configfile.shwcfg --config-targetframerate=120
(yes it handles both single and double dashes, for flexiblity)

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.

1 participant