And has the language related stuff without the need of ifdef hell ROM now pads only to 1.1MB And collision has some unnecessary typecasting removed for performance
35 lines
970 B
C
35 lines
970 B
C
#include <ultra64.h>
|
|
#include <hvqm2dec.h>
|
|
|
|
#include "buffers.h"
|
|
#include "audio/data.h"
|
|
#ifdef HVQM
|
|
#include <hvqm/hvqm.h>
|
|
#endif
|
|
#include "config.h"
|
|
#include "audio/synthesis.h"
|
|
|
|
ALIGNED8 u8 gDecompressionHeap[0xD000];
|
|
ALIGNED16 u8 gAudioHeap[DOUBLE_SIZE_ON_64_BIT(0x31200 + EXT_AUDIO_HEAP_SIZE + EXT_AUDIO_INIT_POOL_SIZE + BETTER_REVERB_SIZE)];
|
|
|
|
ALIGNED8 u8 gIdleThreadStack[0x800];
|
|
ALIGNED8 u8 gThread3Stack[0x2000];
|
|
ALIGNED8 u8 gThread4Stack[0x2000];
|
|
ALIGNED8 u8 gThread5Stack[0x2000];
|
|
#if ENABLE_RUMBLE
|
|
ALIGNED8 u8 gThread6Stack[0x2000];
|
|
#endif
|
|
// 0x400 bytes
|
|
#if UNF
|
|
ALIGNED16 u8 gGfxSPTaskStack[SP_DRAM_STACK_SIZE8];
|
|
ALIGNED16 u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE];
|
|
#else
|
|
// 0xc00 bytes for f3dex, 0x900 otherwise
|
|
ALIGNED8 u8 gGfxSPTaskStack[SP_DRAM_STACK_SIZE8];
|
|
ALIGNED8 u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE];
|
|
#endif // UNF
|
|
// 0x200 bytes
|
|
struct SaveBuffer __attribute__ ((aligned (8))) gSaveBuffer;
|
|
// 0x190a0 bytes
|
|
struct GfxPool gGfxPools[2];
|