aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2018-11-16 16:25:40 +0200
committerGitHub <noreply@github.com>2018-11-16 16:25:40 +0200
commit4d975e7bde886bf5872d331f22f3eb78fcbb3480 (patch)
tree7e89e3983ef28bc1cc57b310d86b27c7152067f1 /src
parent548149cdbb709f5484eabf3c292822821f2c3867 (diff)
parent6d005b9788374ac7ea60081aa779d51d0f9d88e7 (diff)
Merge pull request #1709 from ogniK5377/docked-mode-crash
Fixed switching operation modes when not running a game
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_general.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp
index b322258a00..314f512030 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