summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/CommandLineParse.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2020-05-06 22:10:30 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2020-05-06 22:10:30 -0500
commitcdf5490d56f02001fe79230a59fed76c60d69db7 (patch)
tree8f03157f4c0a5ee74d30c0ca048c824e18c4cdb2 /Source/Core/UICommon/CommandLineParse.cpp
parent74b2410d7e3feefe25cd49c16773ea48fc0e2579 (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.cpp5
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)
{