Core: Add support for specifying a command line option to boot the game into a save-state

This commit is contained in:
iwubcode
2020-05-06 22:10:30 -05:00
parent 74b2410d7e
commit cdf5490d56
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)
{