Websocket: Request resets asynchronously. sync won't work.

This commit is contained in:
Henrik Rydgård committed 2025-08-26 10:12:43 +02:00
1 parent 3680bb17d3
commit a7b36ae0ae
1 file changed
+3 -8
+3 -8
View File
@@ -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();
}