SW in Lemmy's suite with Krom's IPL3 loops infinitely due to throwing exception that shouldn't happen

This commit is contained in:
CocoSimone
2022-10-01 03:47:26 +02:00
parent a711093b55
commit 770339f84e
6 changed files with 26 additions and 7 deletions

View File

@@ -14,7 +14,14 @@ void App::Run() {
while (SDL_PollEvent(&event)) {
ImGui_ImplSDL2_ProcessEvent(&event);
switch(event.type) {
case SDL_QUIT: core.done = true; break;
case SDL_QUIT: {
core.done = true;
FILE *fp = fopen("rdram.dump", "wb");
u8 *temp = core.mem.GetRDRAM();
util::SwapBuffer32(RDRAM_SIZE, temp);
fwrite(temp, 1, RDRAM_SIZE, fp);
fclose(fp);
} break;
case SDL_WINDOWEVENT:
core.done = window.gotClosed(event);
break;