diff options
| author | ZnOw01 <ZnOw01@users.noreply.github.com> | 2026-10-30 09:35:24 -0500 |
|---|---|---|
| committer | ZnOw01 <ZnOw01@users.noreply.github.com> | 2026-10-30 09:35:24 -0500 |
| commit | 75b707a90ac8610e3a7da277e9291fd2ba4a6b52 (patch) | |
| tree | 0b45f4f3d4193422aa8e4598fb9459e23bb69959 /src/common/sparse_large_vector.cpp | |
| parent | 24e3cb462e47b22edda334939123694ff6920e95 (diff) | |
yuzu_cmd: skip kernel teardown when nothing was booted
SDL_AppQuit runs on every exit path, including the ones where SDL_AppInit
returned early: no ROM given, --help, or --version. The kernel only exists
once a title is loaded, so Pause() and ShutdownMainProcess() walk into an
uninitialized KernelCore and the process dies with SIGSEGV. The crash lands
before spdlog flushes, which is why --version printed nothing instead of a
version line.
Guard the teardown on System::IsPoweredOn(), and ignore the null appstate
SDL passes when SDL_AppInit never stored one.
Assisted-by: Claude (Anthropic) (diagnosed the crash and wrote the guard)
Diffstat (limited to 'src/common/sparse_large_vector.cpp')
0 files changed, 0 insertions, 0 deletions
