aboutsummaryrefslogtreecommitdiff
path: root/source/fxemu.c
diff options
context:
space:
mode:
authortwinaphex2017-08-11 17:43:00 +0200
committertwinaphex2017-08-11 17:43:00 +0200
commitb9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch)
treeafd398fed3d08c81957373be55a12284cb932ab6 /source/fxemu.c
parent1aecedc999445e9a27e04f665fd562b576775d08 (diff)
downloadsnes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz
snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2
snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip
Start making this suitable for MSVC and C89
Diffstat (limited to 'source/fxemu.c')
-rw-r--r--source/fxemu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fxemu.c b/source/fxemu.c
index dcbf04d..c3af12d 100644
--- a/source/fxemu.c
+++ b/source/fxemu.c
@@ -284,6 +284,8 @@ static void fx_writeRegisterSpaceAfterUse()
/* Reset the FxChip */
void FxReset(FxInit_s* psFxInfo)
{
+ int32_t i;
+
/* Clear all internal variables */
memset(&GSU, 0, sizeof(FxRegs_s));
@@ -310,7 +312,6 @@ void FxReset(FxInit_s* psFxInfo)
GSU.pvRegisters[0x3b] = 0;
/* Make ROM bank table */
- int32_t i;
for (i = 0; i < 256; i++)
{
uint32_t b = i & 0x7f;