diff --git a/src/audio/heap.c b/src/audio/heap.c index 4b518fc2..424df28e 100644 --- a/src/audio/heap.c +++ b/src/audio/heap.c @@ -8,11 +8,10 @@ #include "effects.h" #include "game/game_init.h" #include "game/puppyprint.h" +#include "game/vc_check.h" #define ALIGN16(val) (((val) + 0xF) & ~0xF) -extern u8 gIsVC; - struct PoolSplit { u32 wantSeq; u32 wantBank; diff --git a/src/game/game_init.c b/src/game/game_init.c index 854b7bda..87c2fa06 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -49,7 +49,6 @@ OSContStatus gControllerStatuses[4]; OSContPad gControllerPads[4]; u8 gControllerBits; u8 gIsConsole = TRUE; // Needs to be initialized before audio_reset_session is called -u8 gIsVC = FALSE; u8 gBorderHeight; #ifdef CUSTOM_DEBUG u8 gCustomDebugMode; diff --git a/src/game/vc_check.c b/src/game/vc_check.c index d5965bec..4029bd49 100644 --- a/src/game/vc_check.c +++ b/src/game/vc_check.c @@ -1,5 +1,7 @@ #include "vc_check.h" +u8 gIsVC = FALSE; + // literally return what was passed f32 round_double_to_float(f64 v) { diff --git a/src/game/vc_check.h b/src/game/vc_check.h index 97a913e8..c39ac722 100644 --- a/src/game/vc_check.h +++ b/src/game/vc_check.h @@ -3,6 +3,8 @@ #include "sm64.h" +extern u8 gIsVC; + // This function must not be inlined by the compiler so I move it to a different C file f32 round_double_to_float(f64);