From 02dbc8694f303728f19734328166a1c6dfef289c Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Wed, 27 Apr 2022 21:00:11 +0100 Subject: [PATCH] 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 --- libpcsxcore/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5