diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2020-05-06 22:10:30 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2020-05-06 22:10:30 -0500 |
| commit | cdf5490d56f02001fe79230a59fed76c60d69db7 (patch) | |
| tree | 8f03157f4c0a5ee74d30c0ca048c824e18c4cdb2 /Source/Core/UICommon/CommandLineParse.cpp | |
| parent | 74b2410d7e3feefe25cd49c16773ea48fc0e2579 (diff) | |
Core: Add support for specifying a command line option to boot the game into a save-state
Diffstat (limited to 'Source/Core/UICommon/CommandLineParse.cpp')
| -rw-r--r-- | Source/Core/UICommon/CommandLineParse.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp index 8051393e4d..c89a5784f0 100644 --- a/Source/Core/UICommon/CommandLineParse.cpp +++ b/Source/Core/UICommon/CommandLineParse.cpp @@ -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) { |
