File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
76
76
m_SaveGameTask.wait ();
77
77
m_SaveGameTask = BS::multi_future<void >();
78
78
79
+ // Might not be strictly necessary?
80
+ g_ThreadMan.GetPriorityThreadPool ().wait_for_tasks ();
81
+ g_ThreadMan.GetBackgroundThreadPool ().wait_for_tasks ();
82
+
79
83
Scene* scene = g_SceneMan.GetScene ();
80
84
GAScripted* activity = dynamic_cast <GAScripted*>(GetActivity ());
81
85
@@ -151,6 +155,9 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
151
155
bool ActivityMan::LoadAndLaunchGame (const std::string& fileName) {
152
156
m_SaveGameTask.wait ();
153
157
158
+ g_ThreadMan.GetPriorityThreadPool ().wait_for_tasks ();
159
+ g_ThreadMan.GetBackgroundThreadPool ().wait_for_tasks ();
160
+
154
161
std::string saveFilePath = g_PresetMan.GetFullModulePath (c_UserScriptedSavesModuleName) + " /" + fileName + " /Save.ini" ;
155
162
156
163
if (!std::filesystem::exists (saveFilePath)) {
You can’t perform that action at this time.
0 commit comments