From: Paul Cercueil Date: Wed, 27 Apr 2022 20:00:11 +0000 (+0100) Subject: lightrec: Only sync register cache before savestate if using dynarec X-Git-Tag: r24l~475^2~1 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02dbc8694f303728f19734328166a1c6dfef289c;p=pcsx_rearmed.git lightrec: Only sync register cache before savestate if using dynarec Synchronizing Lightrec's register cache into PCSX' psxRegs variable must be done only if using Lightrec, not when using PCSX' interpreter. Signed-off-by: Paul Cercueil --- diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index b02ac6f2..a07ab19c 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -624,7 +624,7 @@ int SaveState(const char *file) { new_dyna_before_save(); - if (drc_is_lightrec()) + if (drc_is_lightrec() && Config.Cpu != CPU_INTERPRETER) lightrec_plugin_prepare_save_state(); SaveFuncs.write(f, (void *)PcsxHeader, 32);