forked from eden-emu/eden
		
	hle: service: Ensure system is powered on before writing IPC result.
This commit is contained in:
		
							parent
							
								
									838c266e82
								
							
						
					
					
						commit
						8cf0ba96d9
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -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; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bunnei
						bunnei