summaryrefslogtreecommitdiff
path: root/src/core/hle/service/service.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-14 17:58:12 -0800
committerGravatar bunnei2020-12-28 16:33:48 -0800
commitbea51d948dd4297d6677249562a699d25ad728b0 (patch)
treecdf58f32538fc04957a5117fa39f0c29b670fe5a /src/core/hle/service/service.cpp
parentcore: kernel: Clear process list earlier. (diff)
downloadyuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.gz
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.xz
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.zip
hle: service: Ensure system is powered on before writing IPC result.
Diffstat (limited to 'src/core/hle/service/service.cpp')
-rw-r--r--src/core/hle/service/service.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index abf3d1ea3..d55fba831 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -184,7 +184,11 @@ ResultCode ServiceFrameworkBase::HandleSyncRequest(Kernel::HLERequestContext& co
184 UNIMPLEMENTED_MSG("command_type={}", context.GetCommandType()); 184 UNIMPLEMENTED_MSG("command_type={}", context.GetCommandType());
185 } 185 }
186 186
187 context.WriteToOutgoingCommandBuffer(context.GetThread()); 187 // If emulation was shutdown, we are closing service threads, do not write the response back to
188 // memory that may be shutting down as well.
189 if (system.IsPoweredOn()) {
190 context.WriteToOutgoingCommandBuffer(context.GetThread());
191 }
188 192
189 return RESULT_SUCCESS; 193 return RESULT_SUCCESS;
190} 194}