summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToad King2020-01-04 12:18:46 -0600
committerToad King2020-01-04 12:18:46 -0600
commit769920d869e5ea2022b3d0c719b99b14599dedf0 (patch)
tree0efe76176c20582269e8b0276691ae52ebfed61a /src
parent5652557c5e052b332566db758baec5190b09d8e9 (diff)
downloadsnes9x2002-769920d869e5ea2022b3d0c719b99b14599dedf0.tar.gz
snes9x2002-769920d869e5ea2022b3d0c719b99b14599dedf0.tar.bz2
snes9x2002-769920d869e5ea2022b3d0c719b99b14599dedf0.zip
fix emscripten
Diffstat (limited to 'src')
-rw-r--r--src/apu.c3
-rw-r--r--src/apu.h4
-rw-r--r--src/ppu_.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/apu.c b/src/apu.c
index 5814070..3e7ddd1 100644
--- a/src/apu.c
+++ b/src/apu.c
@@ -46,6 +46,7 @@
#include "snes9x.h"
#include "spc700.h"
#include "apu.h"
+#include "apumem.h"
#include "soundux.h"
#include "cpuexec.h"
@@ -410,8 +411,6 @@ void S9xDeinitAPU()
}
}
-uint8 APUROM [64];
-
void S9xResetAPU(void)
{
int i, j;
diff --git a/src/apu.h b/src/apu.h
index 5d08355..a4927ea 100644
--- a/src/apu.h
+++ b/src/apu.h
@@ -103,8 +103,8 @@ typedef struct
} SIAPU;
-SAPU APU;
-SIAPU IAPU;
+extern SAPU APU;
+extern SIAPU IAPU;
static INLINE void S9xAPUUnpackStatus(void)
{
diff --git a/src/ppu_.c b/src/ppu_.c
index 27891d5..c44374b 100644
--- a/src/ppu_.c
+++ b/src/ppu_.c
@@ -900,7 +900,7 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
if (Byte & FLG_G)
S9xSuperFXExec();
else
- FxFlushCache(&GSU);
+ FxFlushCache();
}
else
Memory.FillRAM [Address] = Byte;