summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorquarrel07 <quarrel-07atolls@icloud.com>2026-06-28 17:41:26 -0700
committerGitHub <noreply@github.com>2026-06-29 02:41:26 +0200
commitd1dec0f6f437cf5342a8514f23741da9ded95485 (patch)
treef98306b154bbf2844b4ced9df31caf986c767696 /src/data
parentdfee19f91e9030ccfdb2d38a3773c7e8995c361d (diff)
Fix crash when bailing out of first-run setup before the game inits (#707)
InitModsSystem() runs before the game world is set up. Its bail-out paths (no O2R + user declines generation, missing mods.toml, cyclic/outdated mod deps, and GenAssetFile's no-ROM / unsupported-ROM cases) call exit(), which runs the global `static World sWorldInstance` destructor -> World::CleanWorld() -> dereferences Sky::Instance and other singletons that are still null this early, segfaulting. The most visible case: declining the first-run "Generate one now?" prompt pops a crash report instead of quitting cleanly. Use _Exit() on these pre-initialization bail-outs so no static destructors run. Co-authored-by: quarrel07 <paeans-toggle-2e@icloud.com> Co-authored-by: coco875 <59367621+coco875@users.noreply.github.com>
Diffstat (limited to 'src/data')
0 files changed, 0 insertions, 0 deletions