Explorar o código

Merge pull request #1709 from ogniK5377/docked-mode-crash

Fixed switching operation modes when not running a game
Hexagon12 %!s(int64=7) %!d(string=hai) anos
pai
achega
d104478f1b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/yuzu/configuration/configure_general.cpp

+ 3 - 0
src/yuzu/configuration/configure_general.cpp

@@ -47,6 +47,9 @@ void ConfigureGeneral::OnDockedModeChanged(bool last_state, bool new_state) {
     }
 
     Core::System& system{Core::System::GetInstance()};
+    if (!system.IsPoweredOn()) {
+        return;
+    }
     Service::SM::ServiceManager& sm = system.ServiceManager();
 
     // Message queue is shared between these services, we just need to signal an operation