aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorgameblabla2020-11-13 11:51:03 +0000
committerGitHub2020-11-13 11:51:03 +0000
commit2c0f6b94dde7ee731b12d8cd0325125a4130f7e1 (patch)
tree561d15ab3b9d9b7019420b6d8a01c652a65e6433 /source
parentc6d560b0adc5b321115f2597091422787588b807 (diff)
parentbd845b9085ab3f59a66278c4f7d4d00877d8fce1 (diff)
downloadsnesemu-2c0f6b94dde7ee731b12d8cd0325125a4130f7e1.tar.gz
snesemu-2c0f6b94dde7ee731b12d8cd0325125a4130f7e1.tar.bz2
snesemu-2c0f6b94dde7ee731b12d8cd0325125a4130f7e1.zip
Merge pull request #2 from m45t3r/gcw0-support
GCW0 support and some fixes
Diffstat (limited to 'source')
-rw-r--r--source/apu.c2
-rw-r--r--source/apu.h4
-rw-r--r--source/cpuops.c2
-rw-r--r--source/soundux.h4
4 files changed, 6 insertions, 6 deletions
diff --git a/source/apu.c b/source/apu.c
index eb6fcb6..2413450 100644
--- a/source/apu.c
+++ b/source/apu.c
@@ -32,7 +32,7 @@ void S9xDeinitAPU()
}
}
-uint8_t APUROM [64];
+extern uint8_t APUROM [64];
void S9xResetAPU()
{
diff --git a/source/apu.h b/source/apu.h
index 42d266f..4a6d46f 100644
--- a/source/apu.h
+++ b/source/apu.h
@@ -46,8 +46,8 @@ typedef struct
bool UNUSED2 [3];
} SAPU;
-SAPU APU;
-SIAPU IAPU;
+extern SAPU APU;
+extern SIAPU IAPU;
static INLINE void S9xAPUUnpackStatus(void)
{
diff --git a/source/cpuops.c b/source/cpuops.c
index 129ffef..99373d0 100644
--- a/source/cpuops.c
+++ b/source/cpuops.c
@@ -18,7 +18,7 @@
#include <retro_inline.h>
-int32_t OpAddress;
+extern int32_t OpAddress;
/* ADC */
static void Op69M1(void)
diff --git a/source/soundux.h b/source/soundux.h
index a3b4bbc..5cb4218 100644
--- a/source/soundux.h
+++ b/source/soundux.h
@@ -48,7 +48,7 @@ typedef struct
bool mute_sound;
} SoundStatus;
-SoundStatus so;
+extern SoundStatus so;
typedef struct
{
@@ -105,7 +105,7 @@ typedef struct
int32_t noise_hertz;
} SSoundData;
-SSoundData SoundData;
+extern SSoundData SoundData;
void S9xSetSoundVolume(int32_t channel, int16_t volume_left, int16_t volume_right);
void S9xSetSoundFrequency(int32_t channel, int32_t hertz);