From b887d38f5ff29e3697e0f4c12413a634490727fa Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Tue, 9 May 2023 23:04:02 -0400 Subject: [PATCH] bump LUS for thread stuff (#2866) * bump for threads * use latest lus main --------- Co-authored-by: briaguya --- libultraship | 2 +- soh/soh/SaveManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libultraship b/libultraship index 26cd6b45e..9d83e108a 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit 26cd6b45e6d9614c0223f238734e70b8b85b1758 +Subproject commit 9d83e108a5b15dc2f8631b9dd754308abd798270 diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index df4fe8ff0..99ec2026c 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -761,7 +761,7 @@ void SaveManager::SaveFile(int fileNum) { // Can't think of any time the promise would be needed, so use push_task instead of submit auto saveContext = new SaveContext; memcpy(saveContext, &gSaveContext, sizeof(gSaveContext)); - smThreadPool->push_task(&SaveManager::SaveFileThreaded, this, fileNum, saveContext); + smThreadPool->push_task_back(&SaveManager::SaveFileThreaded, this, fileNum, saveContext); } void SaveManager::SaveGlobal() {