diff options
| author | 2018-11-16 20:08:02 +1100 | |
|---|---|---|
| committer | 2018-11-16 20:08:02 +1100 | |
| commit | 4476fd29d6bd647479ad840c631cad0b41836fdb (patch) | |
| tree | 7e89e3983ef28bc1cc57b310d86b27c7152067f1 | |
| parent | Fixed priority switching edge case for handheld (#1675) (diff) | |
| download | yuzu-4476fd29d6bd647479ad840c631cad0b41836fdb.tar.gz yuzu-4476fd29d6bd647479ad840c631cad0b41836fdb.tar.xz yuzu-4476fd29d6bd647479ad840c631cad0b41836fdb.zip | |
Fixed switching operation modes when not running a game
The service manager seems to be a nullptr before a game boots
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/configure_general.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { | |||
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | Core::System& system{Core::System::GetInstance()}; | 49 | Core::System& system{Core::System::GetInstance()}; |
| 50 | if (!system.IsPoweredOn()) { | ||
| 51 | return; | ||
| 52 | } | ||
| 50 | Service::SM::ServiceManager& sm = system.ServiceManager(); | 53 | Service::SM::ServiceManager& sm = system.ServiceManager(); |
| 51 | 54 | ||
| 52 | // Message queue is shared between these services, we just need to signal an operation | 55 | // Message queue is shared between these services, we just need to signal an operation |