diff options
| author | JosJuice <josjuice@gmail.com> | 2018-11-05 19:20:45 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2019-01-04 09:24:38 +0100 |
| commit | bd665aad5d6924783a66495eadb0628157062748 (patch) | |
| tree | 05c8d44b9a6effe81bff89186d50c9f7e3ddb7a7 /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | fc68b835e78500c1793566d56df5ad0a8c20280f (diff) | |
Automatic disc change for 2-disc games
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/MainNoGUI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 6cd71bd353..697e4cbe6d 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -368,7 +368,10 @@ int main(int argc, char* argv[]) std::unique_ptr<BootParameters> boot; if (options.is_set("exec")) { - boot = BootParameters::GenerateFromFile(static_cast<const char*>(options.get("exec"))); + const std::list<std::string> paths_list = options.all("exec"); + const std::vector<std::string> paths{std::make_move_iterator(std::begin(paths_list)), + std::make_move_iterator(std::end(paths_list))}; + boot = BootParameters::GenerateFromFile(paths); } else if (options.is_set("nand_title")) { |
