mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 09:35:46 +01:00
Fixed switching operation modes when not running a game
The service manager seems to be a nullptr before a game boots
This commit is contained in:
parent
87eca5b209
commit
4476fd29d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user