summaryrefslogtreecommitdiff
path: root/src/srtc.c
diff options
context:
space:
mode:
authortwinaphex2018-12-28 00:32:13 +0100
committertwinaphex2018-12-28 00:32:13 +0100
commitc007afe6fd51827fade7aa15a0a798be8bd97839 (patch)
tree3b8aca538bec3b42ef9bd33549a15110c3a20e37 /src/srtc.c
parent29db3cf00f552808b3f1dc5d11fcdbbefc659ec4 (diff)
downloadsnes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.tar.gz
snes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.tar.bz2
snes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.zip
Start significantly refactoring this codebase so we can get it
to work with MSVC
Diffstat (limited to 'src/srtc.c')
-rw-r--r--src/srtc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/srtc.c b/src/srtc.c
index 81f7bfe..04007a3 100644
--- a/src/srtc.c
+++ b/src/srtc.c
@@ -459,9 +459,11 @@ void S9xSRTCPreSaveState()
{
if (Settings.SRTC)
{
+ int s;
+
S9xUpdateSrtcTime();
- int s = Memory.SRAMSize ?
+ s = Memory.SRAMSize ?
(1 << (Memory.SRAMSize + 3)) * 128 : 0;
if (s > 0x20000)
s = 0x20000;