diff options
author | Zachary Cook | 2020-02-20 20:17:27 -0500 |
---|---|---|
committer | Zachary Cook | 2020-02-21 12:28:59 -0500 |
commit | 8c9468f18461e1193c479c560a435154387191a9 (patch) | |
tree | 1f83b397228d275a3c82643d053533822ed93c02 /libpcsxcore/misc.c | |
parent | 37e4b2cc27ccb08c1063c3db575d92191d141133 (diff) | |
download | pcsx_rearmed-8c9468f18461e1193c479c560a435154387191a9.tar.gz pcsx_rearmed-8c9468f18461e1193c479c560a435154387191a9.tar.bz2 pcsx_rearmed-8c9468f18461e1193c479c560a435154387191a9.zip |
Fix second instance runahead without breaking reset
Diffstat (limited to 'libpcsxcore/misc.c')
-rw-r--r-- | libpcsxcore/misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 56b7552..d877513 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -657,6 +657,11 @@ int LoadState(const char *file) { if (Config.HLE) psxBiosInit(); +#if defined(LIGHTREC) + if (Config.Cpu != CPU_INTERPRETER) + psxCpu->Clear(0, UINT32_MAX); //clear all + else +#endif psxCpu->Reset(); SaveFuncs.seek(f, 128 * 96 * 3, SEEK_CUR); |