diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-08-20 12:22:50 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-20 12:22:50 +1000 |
| commit | 82fe8f61b6de80549a6afc9542120efffbedc0d1 (patch) | |
| tree | e3709e68273d98c92b177f8cc7e084c711dba5e6 /Source/Core/UICommon/CommandLineParse.cpp | |
| parent | 6efab4e3c6322839a9156d953b321b5da621de91 (diff) | |
| parent | b6df0bff939670ee209abb8817d1aa3bd7ded709 (diff) | |
Merge pull request #8308 from CookiePLMonster/cmdline-headless
Make --batch run Dolphin headless
Diffstat (limited to 'Source/Core/UICommon/CommandLineParse.cpp')
| -rw-r--r-- | Source/Core/UICommon/CommandLineParse.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp index 1a7f2bb82d..5a12d62997 100644 --- a/Source/Core/UICommon/CommandLineParse.cpp +++ b/Source/Core/UICommon/CommandLineParse.cpp @@ -26,11 +26,10 @@ public: : ConfigLayerLoader(Config::LayerType::CommandLine) { if (!video_backend.empty()) - m_values.emplace_back(std::make_tuple(Config::MAIN_GFX_BACKEND.location, video_backend)); + m_values.emplace_back(Config::MAIN_GFX_BACKEND.location, video_backend); if (!audio_backend.empty()) - m_values.emplace_back( - std::make_tuple(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE"))); + m_values.emplace_back(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE")); // Arguments are in the format of <System>.<Section>.<Key>=Value for (const auto& arg : args) @@ -45,7 +44,8 @@ public: if (system) { m_values.emplace_back( - std::make_tuple(Config::ConfigLocation{*system, section, key}, value)); + Config::ConfigLocation{std::move(*system), std::move(section), std::move(key)}, + std::move(value)); } } } @@ -96,7 +96,9 @@ std::unique_ptr<optparse::OptionParser> CreateParser(ParserOptions options) .action("store_true") .help("Show the debugger pane and additional View menu options"); parser->add_option("-l", "--logger").action("store_true").help("Open the logger"); - parser->add_option("-b", "--batch").action("store_true").help("Exit Dolphin with emulation"); + parser->add_option("-b", "--batch") + .action("store_true") + .help("Run Dolphin without the user interface (Requires --exec)"); parser->add_option("-c", "--confirm").action("store_true").help("Set Confirm on Stop"); } |
