mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Websocket: Request resets asynchronously. sync won't work.
This commit is contained in:
1 parent
3680bb17d3
commit
a7b36ae0ae
1 file changed
+3
-8
@@ -49,14 +49,9 @@ void WebSocketGameReset(DebuggerRequest &req) {
|
||||
if (needBreak)
|
||||
PSP_CoreParameter().startBreak = true;
|
||||
|
||||
std::string resetError;
|
||||
if (PSP_Reboot(&resetError) != BootState::Complete) {
|
||||
ERROR_LOG(Log::Boot, "Error resetting: %s", resetError.c_str());
|
||||
return req.Fail("Could not reset");
|
||||
}
|
||||
|
||||
System_Notify(SystemNotification::BOOT_DONE);
|
||||
System_Notify(SystemNotification::DISASSEMBLY);
|
||||
// We can only support async resets here. A lot of the stuff in init must happen on the EmuThread,
|
||||
// and we are not on it here.
|
||||
System_PostUIMessage(UIMessage::REQUEST_GAME_RESET);
|
||||
|
||||
req.Respond();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user