From 99c1f23d5b2b881681a0b01e35a1ccd1aa41333b Mon Sep 17 00:00:00 2001 From: Ali Date: Thu, 26 Mar 2026 11:12:51 -0400 Subject: [PATCH] fix: Fix macOS crashing on first install use (#6412) With the new imgui OTR generation flow, macOS would crash when Ship was run for the first time unless com.shipofharkinian.soh had already been created. Move the call to CheckAndCreateModFolder() earlier in execution to prevent crashing. --- soh/soh/OTRGlobals.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 7cd67c266..7cfdfc92f 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -445,6 +445,11 @@ void OTRGlobals::RunExtract(int argc, char* argv[]) { std::shared_ptr threadPool = std::make_shared(1); std::optional> extractionTask; + +#if not defined(__SWITCH__) && not defined(__WIIU__) + CheckAndCreateModFolder(); +#endif + while (!extractDone) { if (SohGui::PopupsQueued() > 0 || extractionTask.has_value()) { goto render; @@ -760,10 +765,6 @@ void OTRGlobals::RunExtract(int argc, char* argv[]) { #elif defined(__WIIU__) Ship::WiiU::Init(appShortName); #endif - -#if not defined(__SWITCH__) && not defined(__WIIU__) - CheckAndCreateModFolder(); -#endif } void OTRGlobals::Initialize() {