Savestate tweaks (#999)

* move savestate processing

* fix stack overflow

* more

* more
This commit is contained in:
Logan McNaughton
2026-05-31 21:29:28 +02:00
committed by GitHub
parent 5175d50aa8
commit d968983ceb
6 changed files with 32 additions and 27 deletions
+5 -2
View File
@@ -703,8 +703,11 @@ void rdp_check_framebuffers(uint32_t address, uint32_t length) {
size_t rdp_state_size() { return sizeof(RDP_DEVICE); }
void rdp_save_state(uint8_t *state, bool rewind) {
if (!rewind) // speed hack for rewind
processor->wait_for_timeline(processor->signal_timeline());
if (!rewind) { // speed hack for rewind
processor->idle();
rdram_dirty.assign(gfx_info.RDRAM_SIZE >> 3, false);
sync_signal = 0;
}
memcpy(state, &rdp_device, sizeof(RDP_DEVICE));
}