summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-15 02:58:12 +0100
committerbunnei <bunneidev@gmail.com>2020-12-29 01:33:48 +0100
commitbea51d948dd4297d6677249562a699d25ad728b0 (patch)
treecdf58f32538fc04957a5117fa39f0c29b670fe5a
parentcore: kernel: Clear process list earlier. (diff)
downloadyuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.gz
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.bz2
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.lz
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.xz
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.tar.zst
yuzu-bea51d948dd4297d6677249562a699d25ad728b0.zip
Diffstat (limited to '')
-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
UNIMPLEMENTED_MSG("command_type={}", context.GetCommandType());
}
- context.WriteToOutgoingCommandBuffer(context.GetThread());
+ // If emulation was shutdown, we are closing service threads, do not write the response back to
+ // memory that may be shutting down as well.
+ if (system.IsPoweredOn()) {
+ context.WriteToOutgoingCommandBuffer(context.GetThread());
+ }
return RESULT_SUCCESS;
}