summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp5
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"))
{