Fixed switching operation modes when not running a game

The service manager seems to be a nullptr before a game boots
master
David Marcec 2018-11-16 20:08:02 +07:00
parent 87eca5b209
commit 4476fd29d6
1 changed files with 3 additions and 0 deletions

@ -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