aboutsummaryrefslogtreecommitdiff
path: root/source/cpu.c
diff options
context:
space:
mode:
authorJoão Silva2017-06-18 16:16:19 +0100
committerJoão Silva2017-06-18 16:16:19 +0100
commitbcaf44c511efaad9d803dde9b0fdbb046498c66f (patch)
treec526c7d332be548a42364eea9113b6d33345b840 /source/cpu.c
parent10a58e72aa3f74a821fa9be07ffd3992ffa93600 (diff)
downloadsnes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.gz
snes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.tar.bz2
snes9x2005-bcaf44c511efaad9d803dde9b0fdbb046498c66f.zip
Support for savestate versioning. Plenty of cleanups.
Diffstat (limited to 'source/cpu.c')
-rw-r--r--source/cpu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/cpu.c b/source/cpu.c
index 15206c5..1724fd6 100644
--- a/source/cpu.c
+++ b/source/cpu.c
@@ -15,11 +15,10 @@
#include "spc7110.h"
#include "obc1.h"
-extern struct FxInit_s SuperFX;
+extern FxInit_s SuperFX;
void S9xResetSuperFX()
{
- SuperFX.vFlags = 0;
FxReset(&SuperFX);
}
@@ -57,9 +56,7 @@ void S9xResetCPU()
CPU.V_Counter = 0;
CPU.MemSpeed = SLOW_ONE_CYCLE;
CPU.MemSpeedx2 = SLOW_ONE_CYCLE * 2;
- CPU.AutoSaveTimer = 0;
CPU.SRAMModified = false;
- CPU.BRKTriggered = false;
CPU.NMICycleCount = 0;
CPU.IRQCycleCount = 0;
S9xSetPCBase(ICPU.Registers.PC);
@@ -94,9 +91,7 @@ static void CommonS9xReset()
if (Settings.C4)
S9xInitC4();
-#ifdef WANT_CHEATS
S9xInitCheatData();
-#endif
}
void S9xReset()