diff options
| author | Ali <homeisfar@users.noreply.github.com> | 2026-03-26 11:12:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 15:12:51 +0000 |
| commit | 99c1f23d5b2b881681a0b01e35a1ccd1aa41333b (patch) | |
| tree | c216fe1d66a035ef29b9e4d24d60e674adea471f | |
| parent | 69e03dcc52a141c8833b0e98490e5df0fed300ac (diff) | |
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.
| -rw-r--r-- | soh/soh/OTRGlobals.cpp | 9 |
1 files 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<BS::thread_pool> threadPool = std::make_shared<BS::thread_pool>(1); std::optional<std::future<void>> 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() { |
