From cdf5490d56f02001fe79230a59fed76c60d69db7 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Wed, 6 May 2020 22:10:30 -0500 Subject: Core: Add support for specifying a command line option to boot the game into a save-state --- Source/Core/UICommon/CommandLineParse.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/UICommon/CommandLineParse.cpp') 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 CreateParser(ParserOptions options) .metavar(".
.=") .type("string") .help("Set a configuration option"); + parser->add_option("-s", "--save_state") + .action("store") + .metavar("") + .type("string") + .help("Load the initial save state"); if (options == ParserOptions::IncludeGUIOptions) { -- cgit v1.2.3