From 4476fd29d6bd647479ad840c631cad0b41836fdb Mon Sep 17 00:00:00 2001 From: David Marcec Date: Fri, 16 Nov 2018 20:08:02 +1100 Subject: Fixed switching operation modes when not running a game The service manager seems to be a nullptr before a game boots --- src/yuzu/configuration/configure_general.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp index b322258a0..314f51203 100644 --- a/src/yuzu/configuration/configure_general.cpp +++ b/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 -- cgit v1.2.3