Merge pull request #8797 from iwubcode/save-state-CLI

Core: Add support for booting a save state from command line
This commit is contained in:
Pierre Bourdon
2020-05-17 17:34:08 +02:00
committed by GitHub
3 changed files with 39 additions and 6 deletions

View File

@ -94,6 +94,11 @@ std::unique_ptr<optparse::OptionParser> CreateParser(ParserOptions options)
.metavar("<System>.<Section>.<Key>=<Value>")
.type("string")
.help("Set a configuration option");
parser->add_option("-s", "--save_state")
.action("store")
.metavar("<file>")
.type("string")
.help("Load the initial save state");
if (options == ParserOptions::IncludeGUIOptions)
{