Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

core: Don't shutdown a null GPU

lat9nq7df809b8b135
diff --git a/src/core/core.cpp b/src/core/core.cpp
index b0cfee3ee0..c60a784c3e 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -326,7 +326,9 @@ struct System::Impl {
is_powered_on = false;
exit_lock = false;
- gpu_core->NotifyShutdown();
+ if (gpu_core != nullptr) {
+ gpu_core->NotifyShutdown();
+ }
services.reset();
service_manager.reset();