Browse Source

hle: service: Ensure system is powered on before writing IPC result.

nce_cpp
bunnei 5 years ago
parent
commit
8cf0ba96d9
  1. 4
      src/core/hle/service/service.cpp

4
src/core/hle/service/service.cpp

@ -184,7 +184,11 @@ ResultCode ServiceFrameworkBase::HandleSyncRequest(Kernel::HLERequestContext& co
UNIMPLEMENTED_MSG("command_type={}", context.GetCommandType());
}
// 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;
}

Loading…
Cancel
Save