![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
#include <ultra64.h>
#include "sm64.h"
#include "audio/external.h"
#include "game.h"
#include "memory.h"
#include "sound_init.h"
#include "profiler.h"
#include "buffers.h"
#include "segments.h"
#include "main.h"
Macros | |
#define | MESG_SP_COMPLETE 100 |
#define | MESG_DP_COMPLETE 101 |
#define | MESG_VI_VBLANK 102 |
#define | MESG_START_GFX_SPTASK 103 |
#define | MESG_NMI_REQUEST 104 |
Variables | |
OSThread | D_80339210 |
OSThread | gIdleThread |
OSThread | gMainThread |
OSThread | gGameLoopThread |
OSThread | gSoundThread |
OSMesgQueue | gPIMesgQueue |
OSMesgQueue | gIntrMesgQueue |
OSMesgQueue | gSPTaskMesgQueue |
OSMesg | gDmaMesgBuf [1] |
OSMesg | gPIMesgBuf [32] |
OSMesg | gSIEventMesgBuf [1] |
OSMesg | gIntrMesgBuf [16] |
OSMesg | gUnknownMesgBuf [16] |
OSIoMesg | gDmaIoMesg |
OSMesg | D_80339BEC |
OSMesgQueue | gDmaMesgQueue |
OSMesgQueue | gSIEventMesgQueue |
struct VblankHandler * | gVblankHandler1 = NULL |
struct VblankHandler * | gVblankHandler2 = NULL |
struct SPTask * | gActiveSPTask = NULL |
struct SPTask * | sCurrentAudioSPTask = NULL |
struct SPTask * | sCurrentDisplaySPTask = NULL |
struct SPTask * | sNextAudioSPTask = NULL |
struct SPTask * | sNextDisplaySPTask = NULL |
s8 | sAudioEnabled = 1 |
u32 | sNumVblanks = 0 |
s8 | gResetTimer = 0 |
s8 | D_8032C648 = 0 |
s8 | gDebugLevelSelect = 0 |
s8 | D_8032C650 = 0 |
s8 | gShowProfiler = FALSE |
s8 | gShowDebugText = FALSE |
#define MESG_DP_COMPLETE 101 |
#define MESG_NMI_REQUEST 104 |
#define MESG_SP_COMPLETE 100 |
#define MESG_START_GFX_SPTASK 103 |
#define MESG_VI_VBLANK 102 |
void create_thread | ( | OSThread * | thread, |
OSId | id, | ||
void(*)(void *) | entry, | ||
void * | arg, | ||
void * | sp, | ||
OSPri | pri | ||
) |
void SendMessage | ( | OSMesg * | msg | ) |
void set_vblank_handler | ( | s32 | index, |
struct VblankHandler * | handler, | ||
OSMesgQueue * | queue, | ||
OSMesg * | msg | ||
) |
s8 D_8032C648 = 0 |
s8 D_8032C650 = 0 |
OSThread D_80339210 |
OSMesg D_80339BEC |
s8 gDebugLevelSelect = 0 |
OSIoMesg gDmaIoMesg |
OSMesg gDmaMesgBuf[1] |
OSMesgQueue gDmaMesgQueue |
OSThread gGameLoopThread |
OSThread gIdleThread |
OSMesg gIntrMesgBuf[16] |
OSMesgQueue gIntrMesgQueue |
OSThread gMainThread |
OSMesg gPIMesgBuf[32] |
OSMesgQueue gPIMesgQueue |
s8 gResetTimer = 0 |
OSMesg gSIEventMesgBuf[1] |
OSMesgQueue gSIEventMesgQueue |
OSThread gSoundThread |
OSMesgQueue gSPTaskMesgQueue |
OSMesg gUnknownMesgBuf[16] |
struct VblankHandler* gVblankHandler1 = NULL |
struct VblankHandler* gVblankHandler2 = NULL |
s8 sAudioEnabled = 1 |
u32 sNumVblanks = 0 |