Skip to content

Commit

Permalink
Core/ST: Fix missing SI interrupt in queue when savestating on pure i…
Browse files Browse the repository at this point in the history
…nterpreter

Fixes regression from f9d58f6
  • Loading branch information
Aurumaker72 committed Nov 27, 2024
1 parent aeb2d1e commit 5004e00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/memory/savestates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ namespace Savestates
memset(g_flashram_buf, 0, sizeof(g_flashram_buf));
memset(g_event_queue_buf, 0, sizeof(g_event_queue_buf));

save_flashram_infos(g_flashram_buf);
const int event_queue_len = save_eventqueue_infos(g_event_queue_buf);
uint32_t movie_active = VCR::get_task() != e_task::idle;

if (FIX_NEW_ST)
Expand Down Expand Up @@ -229,6 +227,10 @@ namespace Savestates
//hack end
}

// NOTE: This saving needs to be done **after** the fixing block, as it is now. See previous regression in f9d58f639c798cbc26bbb808b1c3dbd834ffe2d9.
save_flashram_infos(g_flashram_buf);
const int event_queue_len = save_eventqueue_infos(g_event_queue_buf);

vecwrite(b, rom_md5, 32);
vecwrite(b, &rdram_register, sizeof(RDRAM_register));
vecwrite(b, &MI_register, sizeof(mips_register));
Expand Down

0 comments on commit 5004e00

Please sign in to comment.