summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-11-23 16:19:56 +0100
committerGitHub <noreply@github.com>2021-11-23 16:19:56 +0100
commitba62019eb5fa2f207821a8cfd9610533d12313e6 (patch)
treec8786c82bfa06d2c938debd06c17c2e90746d862 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parentcc9a75a87bc6e6c28d05535d3dd8877979aab4d0 (diff)
parent6350c93ae15ebead036cbadbea5fae5c67b846f4 (diff)
Merge pull request #10235 from AdmiralCurtiss/netplay-save-sync-boot
Netplay: Fix possible Wii save restore race condition between Netplay and CPU threads on game shutdown by making the Wii Save Sync data part of the BootParameters.
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;
}