summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2021-11-20 19:38:09 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2021-11-22 00:35:35 +0100
commit83ad84061e05fd7d07998757aa3fc9622066573f (patch)
tree7b217f00eb4b7a6171285989f36f5057bdd6b939 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parentd5b917a6c2d25926c5aa057fdaf8fce5debb3182 (diff)
Core/Boot: Refactor storage of boot-to-savestate data into a separate class.
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 26b0e69a22..f439130441 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -187,7 +187,8 @@ int main(int argc, char* argv[])
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, save_state_path);
+ boot = BootParameters::GenerateFromFile(
+ paths, BootSessionData(save_state_path, DeleteSavestateAfterBoot::No));
game_specified = true;
}
else if (options.is_set("nand_title"))
@@ -204,7 +205,8 @@ int main(int argc, char* argv[])
}
else if (args.size())
{
- boot = BootParameters::GenerateFromFile(args.front(), save_state_path);
+ boot = BootParameters::GenerateFromFile(
+ args.front(), BootSessionData(save_state_path, DeleteSavestateAfterBoot::No));
args.erase(args.begin());
game_specified = true;
}