Files

1817 lines
47 KiB
C

/*
Compile unit: C:\HOMEBOY\STEPHEN\Japanese Ocarina\Fire\simGCN.c
Producer: MW EABI PPC C-Compiler
Language: C++
Code range: 0x80007F80 -> 0x8000F7CC
*/
#include "dolphin/types.h"
typedef struct __anon_0x57A1 {
/* 0x0 */ int nMode;
} __anon_0x57A1; // size = 0x4
// size = 0x4, address = 0x801355D0
static struct __anon_0x57A1* gpCode;
// size = 0x28C1, address = 0x800DB800
u8 gcoverOpen[10433];
// size = 0x1F01, address = 0x800DE0E0
u8 gnoDisk[7937];
// size = 0x2441, address = 0x800E0000
u8 gretryErr[9281];
// size = 0x32E1, address = 0x800E2460
u8 gfatalErr[13025];
// size = 0x1F01, address = 0x800E5760
u8 gwrongDisk[7937];
// size = 0xC41, address = 0x800E7680
u8 greadingDisk[3137];
// size = 0x741, address = 0x800E82E0
u8 gbar[1857];
// size = 0x5C1, address = 0x800E8A40
u8 gyes[1473];
// size = 0x5C1, address = 0x800E9020
u8 gno[1473];
// size = 0x341, address = 0x800E9600
u8 gmesgOK[833];
// size = 0x4, address = 0x80134CE8
unsigned int gmsg_ld01Size;
// size = 0x4, address = 0x80134CEC
unsigned int gmsg_ld02Size;
// size = 0x4, address = 0x80134CF0
unsigned int gmsg_ld03Size;
// size = 0x4, address = 0x80134CF4
unsigned int gmsg_ld04Size;
// size = 0x4, address = 0x80134CF8
unsigned int gmsg_ld05_1Size;
// size = 0x4, address = 0x80134CFC
unsigned int gmsg_ld05_2Size;
// size = 0x4, address = 0x80134D00
unsigned int gmsg_ld06_1Size;
// size = 0x4, address = 0x80134D04
unsigned int gmsg_ld06_2Size;
// size = 0x4, address = 0x80134D08
unsigned int gmsg_ld06_3Size;
// size = 0x4, address = 0x80134D0C
unsigned int gmsg_ld06_4Size;
// size = 0x4, address = 0x80134D10
unsigned int gmsg_ld07Size;
// size = 0x4, address = 0x80134D14
unsigned int gmsg_gf01Size;
// size = 0x4, address = 0x80134D18
unsigned int gmsg_gf02Size;
// size = 0x4, address = 0x80134D1C
unsigned int gmsg_gf03Size;
// size = 0x4, address = 0x80134D20
unsigned int gmsg_gf04Size;
// size = 0x4, address = 0x80134D24
unsigned int gmsg_gf05Size;
// size = 0x4, address = 0x80134D28
unsigned int gmsg_gf06Size;
// size = 0x4, address = 0x80134D2C
unsigned int gmsg_in01Size;
// size = 0x4, address = 0x80134D30
unsigned int gmsg_in02Size;
// size = 0x4, address = 0x80134D34
unsigned int gmsg_in03Size;
// size = 0x4, address = 0x80134D38
unsigned int gmsg_in04Size;
// size = 0x4, address = 0x80134D3C
unsigned int gmsg_in05Size;
// size = 0x4, address = 0x80134D40
unsigned int gmsg_sv01Size;
// size = 0x4, address = 0x80134D44
unsigned int gmsg_sv01_2Size;
// size = 0x4, address = 0x80134D48
unsigned int gmsg_sv02Size;
// size = 0x4, address = 0x80134D4C
unsigned int gmsg_sv03Size;
// size = 0x4, address = 0x80134D50
unsigned int gmsg_sv04Size;
// size = 0x4, address = 0x80134D54
unsigned int gmsg_sv05_1Size;
// size = 0x4, address = 0x80134D58
unsigned int gmsg_sv06_1Size;
// size = 0x4, address = 0x80134D5C
unsigned int gmsg_sv06_2Size;
// size = 0x4, address = 0x80134D60
unsigned int gmsg_sv06_3Size;
// size = 0x4, address = 0x80134D64
unsigned int gmsg_sv06_4Size;
// size = 0x4, address = 0x80134D68
unsigned int gmsg_sv06_5Size;
// size = 0x4, address = 0x80134D6C
unsigned int gmsg_sv07Size;
// size = 0x4, address = 0x80134D70
unsigned int gmsg_sv08Size;
// size = 0x4, address = 0x80134D74
unsigned int gmsg_sv09Size;
// size = 0x4, address = 0x80134D78
unsigned int gmsg_sv10Size;
// size = 0x4, address = 0x80134D7C
unsigned int gmsg_sv11Size;
// size = 0x4, address = 0x80134D80
unsigned int gmsg_sv12Size;
// size = 0x4, address = 0x80134D84
unsigned int gmsg_sv_shareSize;
// size = 0x4, address = 0x80134D88
unsigned int gz_bnrSize;
// size = 0x4, address = 0x80134D8C
unsigned int gz_iconSize;
// size = 0x4, address = 0x80134D90
int gHighlightChoice;
typedef enum __anon_0x61D7 {
S_M_NONE = -1,
S_M_DISK_COVER_OPEN = 0,
S_M_DISK_WRONG_DISK = 1,
S_M_DISK_READING_DISK = 2,
S_M_DISK_FATAL_ERROR = 3,
S_M_DISK_RETRY_ERROR = 4,
S_M_DISK_NO_DISK = 5,
S_M_DISK_DEFAULT_ERROR = 6,
S_M_CARD_LD01 = 7,
S_M_CARD_LD02 = 8,
S_M_CARD_LD03 = 9,
S_M_CARD_LD04 = 10,
S_M_CARD_LD05_1 = 11,
S_M_CARD_LD05_2 = 12,
S_M_CARD_LD06_1 = 13,
S_M_CARD_LD06_2 = 14,
S_M_CARD_LD06_3 = 15,
S_M_CARD_LD06_4 = 16,
S_M_CARD_LD07 = 17,
S_M_CARD_GF01 = 18,
S_M_CARD_GF02 = 19,
S_M_CARD_GF03 = 20,
S_M_CARD_GF04 = 21,
S_M_CARD_GF05 = 22,
S_M_CARD_GF06 = 23,
S_M_CARD_IN01 = 24,
S_M_CARD_IN02 = 25,
S_M_CARD_IN03 = 26,
S_M_CARD_IN04 = 27,
S_M_CARD_IN05 = 28,
S_M_CARD_SV01 = 29,
S_M_CARD_SV01_2 = 30,
S_M_CARD_SV02 = 31,
S_M_CARD_SV03 = 32,
S_M_CARD_SV04 = 33,
S_M_CARD_SV05_1 = 34,
S_M_CARD_SV06_1 = 35,
S_M_CARD_SV06_2 = 36,
S_M_CARD_SV06_3 = 37,
S_M_CARD_SV06_4 = 38,
S_M_CARD_SV06_5 = 39,
S_M_CARD_SV07 = 40,
S_M_CARD_SV08 = 41,
S_M_CARD_SV09 = 42,
S_M_CARD_SV10 = 43,
S_M_CARD_SV11 = 44,
S_M_CARD_SV12 = 45,
S_M_CARD_SV_SHARE = 46,
S_M_CARD_DEFAULT_ERROR = 47,
} __anon_0x61D7;
// size = 0x4, address = 0x80134D94
enum __anon_0x61D7 simulatorMessageCurrent;
// size = 0x40, address = 0x800F4540
static f32 gOrthoMtx[4][4];
// size = 0x4, address = 0x801355D4
int gButtonDownToggle;
// size = 0x18, address = 0x800E9960
s16 Vert_s16[12];
// size = 0x18, address = 0x800E9980
s16 VertTitle_s16[12];
// size = 0x18, address = 0x800E99A0
s16 VertYes_s16[12];
// size = 0x18, address = 0x800E99C0
s16 VertNo_s16[12];
// size = 0x18, address = 0x800E99E0
s16 Vert_s16Bar[12];
// size = 0xC, address = 0x800E9A00
u32 Colors_u32[3];
// size = 0x8, address = 0x800E9A20
u8 TexCoords_u8[8];
// size = 0x4, address = 0x801355D8
int gDVDResetToggle;
// size = 0x4, address = 0x801355DC
static int toggle$192;
// size = 0x140, address = 0x800F4580
static unsigned int gContMap[4][20];
// size = 0x4, address = 0x801355E0
static unsigned int nPrevButton$701;
// size = 0x4, address = 0x801355E4
static unsigned int nCurrButton$702;
// size = 0x4, address = 0x801355E8
static int gbReset;
// size = 0x4, address = 0x801355EC
static unsigned int gnTickReset;
// size = 0x4, address = 0x80134D98
int gResetBeginFlag;
// size = 0x4, address = 0x801355F0
int gPreviousIPLSetting;
// size = 0x4, address = 0x801355F4
int gPreviousForceMenuSetting;
// size = 0x4, address = 0x801355F8
int gPreviousAllowResetSetting;
// size = 0x20, address = 0x800F46C0
static char* gaszArgument[8];
// size = 0x5000, address = 0x800F46E0
char gpErrorMessageBuffer[20480];
// size = 0x4, address = 0x801355FC
int gbDisplayedError;
typedef struct __anon_0x6B86 {
/* 0x0 */ int nSize;
/* 0x4 */ int nOffsetRAM;
/* 0x8 */ int nOffsetROM;
/* 0xC */ int (*pCallback)();
} __anon_0x6B86; // size = 0x10
typedef enum __anon_0x6C37 {
SRT_NONE = -1,
SRT_MARIO = 0,
SRT_WAVERACE = 1,
SRT_MARIOKART = 2,
SRT_STARFOX = 3,
SRT_ZELDA1 = 4,
SRT_ZELDA2 = 5,
SRT_1080 = 6,
SRT_PANEL = 7,
SRT_MARIOPARTY1 = 8,
SRT_MARIOPARTY2 = 9,
SRT_MARIOPARTY3 = 10,
SRT_DRMARIO = 11,
SRT_UNKNOWN = 12,
} __anon_0x6C37;
typedef enum __anon_0x6D66 {
SOT_NONE = -1,
SOT_CPU = 0,
SOT_PIF = 1,
SOT_RAM = 2,
SOT_ROM = 3,
SOT_RSP = 4,
SOT_RDP = 5,
SOT_MIPS = 6,
SOT_DISK = 7,
SOT_FLASH = 8,
SOT_SRAM = 9,
SOT_AUDIO = 10,
SOT_VIDEO = 11,
SOT_SERIAL = 12,
SOT_LIBRARY = 13,
SOT_PERIPHERAL = 14,
SOT_RDB = 15,
SOT_COUNT = 16,
} __anon_0x6D66;
typedef struct __anon_0x6EA4 {
/* 0x00 */ void* pFrame;
/* 0x04 */ void* pSound;
/* 0x08 */ int bException;
/* 0x0C */ enum __anon_0xA6E7 eMode;
/* 0x10 */ struct __anon_0x6B86 romCopy;
/* 0x20 */ enum __anon_0x6C37 eTypeROM;
/* 0x24 */ void* apObject[16];
/* 0x68 */ u64 nAddressBreak;
/* 0x70 */ enum __anon_0x6D66 storageDevice;
/* 0x74 */ u8 anException[16];
/* 0x84 */ int bJapaneseVersion;
} __anon_0x6EA4; // size = 0x88
// size = 0x4, address = 0x80135600
struct __anon_0x6EA4* gpSystem;
typedef enum __anon_0x7115 {
SPM_NONE = -1,
SPM_PLAY = 0,
SPM_RAMPQUEUED = 1,
SPM_RAMPPLAYED = 2,
} __anon_0x7115;
typedef struct __anon_0x7181 {
/* 0x00 */ void* pSrcData;
/* 0x04 */ int nFrequency;
/* 0x08 */ int nDacrate;
/* 0x0C */ int nSndLen;
/* 0x10 */ void* apBuffer[16];
/* 0x50 */ int anSizeBuffer[16];
/* 0x90 */ int nCountBeep;
/* 0x94 */ int anSizeBeep[3];
/* 0xA0 */ void* apDataBeep[3];
/* 0xAC */ int iBufferPlay;
/* 0xB0 */ int iBufferMake;
/* 0xB4 */ enum __anon_0x7115 eMode;
/* 0xB8 */ void* pBufferZero;
/* 0xBC */ void* pBufferHold;
/* 0xC0 */ void* pBufferRampUp;
/* 0xC4 */ void* pBufferRampDown;
/* 0xC8 */ int nSizePlay;
/* 0xCC */ int nSizeZero;
/* 0xD0 */ int nSizeHold;
/* 0xD4 */ int nSizeRamp;
} __anon_0x7181; // size = 0xD8
// size = 0x4, address = 0x80135604
struct __anon_0x7181* gpSound;
typedef struct __anon_0x7511 {
/* 0x0 */ f32 rX;
/* 0x4 */ f32 rY;
/* 0x8 */ f32 rSizeX;
/* 0xC */ f32 rSizeY;
} __anon_0x7511; // size = 0x10
typedef struct __anon_0x75AB {
/* 0x00 */ int nSize;
/* 0x04 */ int nWidth;
/* 0x08 */ int nFormat;
/* 0x0C */ void* pData;
/* 0x10 */ int nAddress;
} __anon_0x75AB; // size = 0x14
typedef struct __anon_0x76EC {
/* 0x0 */ f32 x;
/* 0x4 */ f32 y;
/* 0x8 */ f32 z;
} __anon_0x76EC; // size = 0xC
typedef struct __anon_0x775C {
/* 0x00 */ int bTransformed;
/* 0x04 */ struct __anon_0x76EC rVecOrigTowards;
/* 0x10 */ f32 rColorR;
/* 0x14 */ f32 rColorG;
/* 0x18 */ f32 rColorB;
/* 0x1C */ f32 rVectorX;
/* 0x20 */ f32 rVectorY;
/* 0x24 */ f32 rVectorZ;
/* 0x28 */ f32 kc;
/* 0x2C */ f32 kl;
/* 0x30 */ f32 kq;
/* 0x34 */ s16 coordX;
/* 0x36 */ s16 coordY;
/* 0x38 */ s16 coordZ;
} __anon_0x775C; // size = 0x3C
typedef struct __anon_0x798C {
/* 0x00 */ int bTransformed;
/* 0x04 */ struct __anon_0x76EC rS;
/* 0x10 */ struct __anon_0x76EC rT;
/* 0x1C */ struct __anon_0x76EC rSRaw;
/* 0x28 */ struct __anon_0x76EC rTRaw;
} __anon_0x798C; // size = 0x34
typedef struct __anon_0x7A75 {
/* 0x00 */ f32 rSum;
/* 0x04 */ f32 rS;
/* 0x08 */ f32 rT;
/* 0x0C */ struct __anon_0x76EC vec;
/* 0x18 */ u8 anColor[4];
} __anon_0x7A75; // size = 0x1C
typedef union __anon_0x7BD4 {
/* 0x0 */ u8 u8[4096];
/* 0x0 */ u16 u16[2048];
/* 0x0 */ unsigned int u32[1024];
/* 0x0 */ u64 u64[512];
} __anon_0x7BD4;
typedef struct __anon_0x7C71 {
/* 0x0 */ union __anon_0x7BD4 data;
} __anon_0x7C71; // size = 0x1000
typedef enum _GXTexFmt {
GX_TF_I4 = 0,
GX_TF_I8 = 1,
GX_TF_IA4 = 2,
GX_TF_IA8 = 3,
GX_TF_RGB565 = 4,
GX_TF_RGB5A3 = 5,
GX_TF_RGBA8 = 6,
GX_TF_CMPR = 14,
GX_CTF_R4 = 32,
GX_CTF_RA4 = 34,
GX_CTF_RA8 = 35,
GX_CTF_YUVA8 = 38,
GX_CTF_A8 = 39,
GX_CTF_R8 = 40,
GX_CTF_G8 = 41,
GX_CTF_B8 = 42,
GX_CTF_RG8 = 43,
GX_CTF_GB8 = 44,
GX_TF_Z8 = 17,
GX_TF_Z16 = 19,
GX_TF_Z24X8 = 22,
GX_CTF_Z4 = 48,
GX_CTF_Z8M = 57,
GX_CTF_Z8L = 58,
GX_CTF_Z16L = 60,
GX_TF_A8 = 39,
} __anon_0x7D0A;
typedef struct _GXTlutObj {
/* 0x0 */ u32 dummy[3];
} __anon_0x7ECC; // size = 0xC
typedef enum _GXTexWrapMode {
GX_CLAMP = 0,
GX_REPEAT = 1,
GX_MIRROR = 2,
GX_MAX_TEXWRAPMODE = 3,
} __anon_0x7F13;
typedef struct _FRAME_TEXTURE {
/* 0x00 */ int nMode;
/* 0x04 */ int iPackPixel;
/* 0x08 */ int iPackColor;
/* 0x0C */ int nFrameLast;
/* 0x10 */ s16 nSizeX;
/* 0x12 */ s16 nSizeY;
/* 0x14 */ unsigned int nAddress;
/* 0x18 */ unsigned int nCodePixel;
/* 0x1C */ unsigned int nCodeColor;
/* 0x20 */ struct _FRAME_TEXTURE* pTextureNext;
/* 0x24 */ unsigned int nData0;
/* 0x28 */ unsigned int nData1;
/* 0x2C */ unsigned int nData2;
/* 0x30 */ unsigned int nData3;
/* 0x34 */ enum _GXTexFmt eFormat;
/* 0x38 */ struct _GXTlutObj objectTLUT;
/* 0x44 */ struct _GXTexObj objectTexture;
/* 0x64 */ enum _GXTexWrapMode eWrapS;
/* 0x68 */ enum _GXTexWrapMode eWrapT;
} __anon_0x7F7C; // size = 0x6C
typedef struct __anon_0x82D9 {
/* 0x00 */ int nSize;
/* 0x04 */ int nTMEM;
/* 0x08 */ int iTLUT;
/* 0x0C */ int nSizeX;
/* 0x10 */ int nFormat;
/* 0x14 */ s16 nMaskS;
/* 0x16 */ s16 nMaskT;
/* 0x18 */ s16 nModeS;
/* 0x1A */ s16 nModeT;
/* 0x1C */ s16 nShiftS;
/* 0x1E */ s16 nShiftT;
/* 0x20 */ s16 nX0;
/* 0x22 */ s16 nY0;
/* 0x24 */ s16 nX1;
/* 0x26 */ s16 nY1;
/* 0x28 */ unsigned int nCodePixel;
} __anon_0x82D9; // size = 0x2C
typedef enum __anon_0x85BB {
FMP_NONE = -1,
FMP_PERSPECTIVE = 0,
FMP_ORTHOGRAPHIC = 1,
} __anon_0x85BB;
typedef struct __anon_0x863F {
/* 0x00 */ int nCount;
/* 0x04 */ f32 rScale;
/* 0x08 */ f32 rAspect;
/* 0x0C */ f32 rFieldOfViewY;
/* 0x10 */ f32 rClipNear;
/* 0x14 */ f32 rClipFar;
/* 0x18 */ unsigned int nAddressFloat;
/* 0x1C */ unsigned int nAddressFixed;
/* 0x20 */ enum __anon_0x85BB eProjection;
} __anon_0x863F; // size = 0x24
typedef struct __anon_0x87F6 {
/* 0x00000 */ unsigned int anCIMGAddresses[8];
/* 0x00020 */ u16 nNumCIMGAddresses;
/* 0x00024 */ int bBlurOn;
/* 0x00028 */ int bHackPause;
/* 0x0002C */ int nHackCount;
/* 0x00030 */ int nFrameCounter;
/* 0x00034 */ int bPauseThisFrame;
/* 0x00038 */ int bCameFromBomberNotes;
/* 0x0003C */ int bInBomberNotes;
/* 0x00040 */ int bShrinking;
/* 0x00044 */ int bSnapShot;
/* 0x00048 */ int bUsingLens;
/* 0x0004C */ u8 cBlurAlpha;
/* 0x00050 */ int bBlurredThisFrame;
/* 0x00054 */ int nFrameCIMGCalls;
/* 0x00058 */ int bModifyZBuffer;
/* 0x0005C */ int bOverrideDepth;
/* 0x00060 */ int nZBufferSets;
/* 0x00064 */ int nLastFrameZSets;
/* 0x00068 */ int bPauseBGDrawn;
/* 0x0006C */ int bFrameOn;
/* 0x00070 */ int bBackBufferDrawn;
/* 0x00074 */ int bGrabbedFrame;
/* 0x00078 */ u64* pnGBI;
/* 0x0007C */ unsigned int nFlag;
/* 0x00080 */ f32 rScaleX;
/* 0x00084 */ f32 rScaleY;
/* 0x00088 */ unsigned int nCountFrames;
/* 0x0008C */ unsigned int nMode;
/* 0x00090 */ unsigned int aMode[10];
/* 0x000B8 */ struct __anon_0x7511 viewport;
/* 0x000C8 */ struct __anon_0x75AB aBuffer[4];
/* 0x00118 */ unsigned int nOffsetDepth0;
/* 0x0011C */ unsigned int nOffsetDepth1;
/* 0x00120 */ int nWidthLine;
/* 0x00124 */ f32 rDepth;
/* 0x00128 */ f32 rDelta;
/* 0x0012C */ int (*aDraw[4])(void*, void*);
/* 0x0013C */ int nCountLight;
/* 0x00140 */ struct __anon_0x775C aLight[8];
/* 0x00320 */ struct __anon_0x798C lookAt;
/* 0x00354 */ int nCountVertex;
/* 0x00358 */ struct __anon_0x7A75 aVertex[80];
/* 0x00C18 */ struct __anon_0x7C71 TMEM;
/* 0x01C18 */ void* aPixelData;
/* 0x01C1C */ void* aColorData;
/* 0x01C20 */ int nBlocksPixel;
/* 0x01C24 */ int nBlocksMaxPixel;
/* 0x01C28 */ int nBlocksColor;
/* 0x01C2C */ int nBlocksMaxColor;
/* 0x01C30 */ int nBlocksTexture;
/* 0x01C34 */ int nBlocksMaxTexture;
/* 0x01C38 */ unsigned int anPackPixel[48];
/* 0x01CF8 */ unsigned int anPackColor[320];
/* 0x021F8 */ unsigned int nAddressLoad;
/* 0x021FC */ unsigned int nCodePixel;
/* 0x02200 */ unsigned int nTlutCode[16];
/* 0x02240 */ struct _FRAME_TEXTURE aTexture[2048];
/* 0x38240 */ unsigned int anTextureUsed[64];
/* 0x38340 */ struct _FRAME_TEXTURE* apTextureCached[4096];
/* 0x3C340 */ int iTileLoad;
/* 0x3C344 */ unsigned int n2dLoadTexType;
/* 0x3C348 */ int nLastX0;
/* 0x3C34C */ int nLastY0;
/* 0x3C350 */ int nLastX1;
/* 0x3C354 */ int nLastY1;
/* 0x3C358 */ struct __anon_0x82D9 aTile[8];
/* 0x3C4B8 */ int anSizeX[2];
/* 0x3C4C0 */ int anSizeY[2];
/* 0x3C4C8 */ int iHintMatrix;
/* 0x3C4CC */ int iMatrixModel;
/* 0x3C4D0 */ int iHintProjection;
/* 0x3C4D4 */ f32 matrixView[4][4];
/* 0x3C514 */ int iHintLast;
/* 0x3C518 */ int iHintHack;
/* 0x3C51C */ enum __anon_0x85BB eTypeProjection;
/* 0x3C520 */ f32 aMatrixModel[10][4][4];
/* 0x3C7A0 */ f32 matrixProjection[4][4];
/* 0x3C7E0 */ f32 matrixProjectionExtra[4][4];
/* 0x3C820 */ struct __anon_0x863F aMatrixHint[64];
/* 0x3D120 */ u8 primLODmin;
/* 0x3D121 */ u8 primLODfrac;
/* 0x3D122 */ u8 lastTile;
/* 0x3D123 */ u8 iTileDrawn;
/* 0x3D124 */ struct _GXColor aColor[5];
/* 0x3D138 */ unsigned int nModeVtx;
/* 0x3D13C */ u16* nTempBuffer;
/* 0x3D140 */ u16* nCopyBuffer;
/* 0x3D144 */ unsigned int* nLensBuffer;
/* 0x3D148 */ u16* nCameraBuffer;
} __anon_0x87F6; // size = 0x3D150
// size = 0x4, address = 0x80135608
struct __anon_0x87F6* gpFrame;
// size = 0x1, address = 0x80135AA8
u8 DemoStatEnable;
// size = 0x4, address = 0x80135A8C
void* DemoCurrentBuffer;
// size = 0x4, address = 0x80135A94
void* DemoFrameBuffer1;
// size = 0x4, address = 0x80135A90
void* DemoFrameBuffer2;
typedef struct __anon_0x9737 {
/* 0x00 */ int configuration;
/* 0x04 */ int size;
/* 0x08 */ int offset;
/* 0x0C */ char* buffer;
/* 0x10 */ int* writtenBlocks;
/* 0x14 */ int writtenConfig;
} __anon_0x9737; // size = 0x18
typedef struct OSCalendarTime {
/* 0x00 */ int sec;
/* 0x04 */ int min;
/* 0x08 */ int hour;
/* 0x0C */ int mday;
/* 0x10 */ int mon;
/* 0x14 */ int year;
/* 0x18 */ int wday;
/* 0x1C */ int yday;
/* 0x20 */ int msec;
/* 0x24 */ int usec;
} __anon_0x98DA; // size = 0x28
typedef struct CARDFileInfo {
/* 0x00 */ s32 chan;
/* 0x04 */ s32 fileNo;
/* 0x08 */ s32 offset;
/* 0x0C */ s32 length;
/* 0x10 */ u16 iBlock;
/* 0x12 */ u16 __padding;
} __anon_0x9A48; // size = 0x14
typedef struct __anon_0x9B40 {
/* 0x000 */ int currentGame;
/* 0x004 */ int fileSize;
/* 0x008 */ char name[33];
/* 0x02C */ int numberOfGames;
/* 0x030 */ struct __anon_0x9737 game;
/* 0x048 */ int changedDate;
/* 0x04C */ int changedChecksum;
/* 0x050 */ int gameSize[16];
/* 0x090 */ int gameOffset[16];
/* 0x0D0 */ int gameConfigIndex[16];
/* 0x110 */ char gameName[16][33];
/* 0x320 */ struct OSCalendarTime time;
/* 0x348 */ struct CARDFileInfo fileInfo;
} __anon_0x9B40; // size = 0x35C
typedef enum __anon_0x9D56 {
MC_E_NONE = 0,
MC_E_BUSY = 1,
MC_E_WRONGDEVICE = 2,
MC_E_NOCARD = 3,
MC_E_NOFILE = 4,
MC_E_IOERROR = 5,
MC_E_BROKEN = 6,
MC_E_EXIST = 7,
MC_E_NOENT = 8,
MC_E_INSSPACE = 9,
MC_E_NOPERM = 10,
MC_E_LIMIT = 11,
MC_E_NAMETOOLONG = 12,
MC_E_ENCODING = 13,
MC_E_CANCELED = 14,
MC_E_FATAL = 15,
MC_E_SECTOR_SIZE_INVALID = 16,
MC_E_GAME_NOT_FOUND = 17,
MC_E_CHECKSUM = 18,
MC_E_NO_FREE_SPACE = 19,
MC_E_NO_FREE_FILES = 20,
MC_E_FILE_EXISTS = 21,
MC_E_GAME_EXISTS = 22,
MC_E_TIME_WRONG = 23,
MC_E_WRITE_CORRUPTED = 24,
MC_E_UNKNOWN = 25,
} __anon_0x9D56;
typedef struct _MCARD {
/* 0x000 */ struct __anon_0x9B40 file;
/* 0x35C */ enum __anon_0x9D56 error;
/* 0x360 */ int slot;
/* 0x364 */ int (*pPollFunction)();
/* 0x368 */ int pollPrevBytes;
/* 0x36C */ int pollSize;
/* 0x370 */ char pollMessage[256];
/* 0x470 */ int saveToggle;
/* 0x474 */ char* writeBuffer;
/* 0x478 */ char* readBuffer;
/* 0x47C */ int writeToggle;
/* 0x480 */ int soundToggle;
/* 0x484 */ int writeStatus;
/* 0x488 */ int writeIndex;
/* 0x48C */ int accessType;
/* 0x490 */ int gameIsLoaded;
/* 0x494 */ char saveFileName[256];
/* 0x594 */ char saveComment[256];
/* 0x694 */ char* saveIcon;
/* 0x698 */ char* saveBanner;
/* 0x69C */ char saveGameName[256];
/* 0x79C */ int saveFileSize;
/* 0x7A0 */ int saveGameSize;
/* 0x7A4 */ int bufferCreated;
/* 0x7A8 */ int cardSize;
/* 0x7AC */ int wait;
/* 0x7B0 */ int isBroken;
/* 0x7B4 */ int saveConfiguration;
} __anon_0x9FF8; // size = 0x7B8
// size = 0x7B8, address = 0x801079B0
struct _MCARD mCard;
typedef struct _XL_OBJECTTYPE {
/* 0x0 */ char* szName;
/* 0x4 */ int nSizeObject;
/* 0x8 */ struct _XL_OBJECTTYPE* pClassBase;
/* 0xC */ int (*pfEvent)(void*, int, void*);
} __anon_0xA4E0; // size = 0x10
// size = 0x10, address = 0x800EA7C8
struct _XL_OBJECTTYPE gClassCode;
// size = 0x10, address = 0x800EA848
struct _XL_OBJECTTYPE gClassFrame;
// size = 0x10, address = 0x800EA7D8
struct _XL_OBJECTTYPE gClassSound;
// size = 0x10, address = 0x800EB310
struct _XL_OBJECTTYPE gClassSystem;
typedef struct _GXColor {
/* 0x0 */ u8 r;
/* 0x1 */ u8 g;
/* 0x2 */ u8 b;
/* 0x3 */ u8 a;
} __anon_0xA64E; // size = 0x4
typedef enum __anon_0xA6E7 {
SM_NONE = -1,
SM_RUNNING = 0,
SM_STOPPED = 1,
} __anon_0xA6E7;
typedef enum __anon_0xA982 {
SAT_NONE = -1,
SAT_NAME = 0,
SAT_PROGRESSIVE = 1,
SAT_VIBRATION = 2,
SAT_CONTROLLER = 3,
SAT_XTRA = 4,
SAT_MEMORYCARD = 5,
SAT_MOVIE = 6,
SAT_RESET = 7,
SAT_COUNT_ = 8,
} __anon_0xA982;
typedef struct PADStatus {
/* 0x0 */ u16 button;
/* 0x2 */ s8 stickX;
/* 0x3 */ s8 stickY;
/* 0x4 */ s8 substickX;
/* 0x5 */ s8 substickY;
/* 0x6 */ u8 triggerLeft;
/* 0x7 */ u8 triggerRight;
/* 0x8 */ u8 analogA;
/* 0x9 */ u8 analogB;
/* 0xA */ s8 err;
} __anon_0xAB9F; // size = 0xC
typedef struct __anon_0xAD2F {
/* 0x00 */ struct PADStatus pst;
/* 0x0C */ u16 buttonDown;
/* 0x0E */ u16 buttonUp;
/* 0x10 */ u16 dirs;
/* 0x12 */ u16 dirsNew;
/* 0x14 */ u16 dirsReleased;
/* 0x16 */ s16 stickDeltaX;
/* 0x18 */ s16 stickDeltaY;
/* 0x1A */ s16 substickDeltaX;
/* 0x1C */ s16 substickDeltaY;
} __anon_0xAD2F; // size = 0x1E
// size = 0x78, address = 0x80132758
struct __anon_0xAD2F DemoPad[4];
typedef enum __anon_0xC003 {
CT_NONE = 0,
CT_CONTROLLER = 1,
CT_CONTROLLER_W_PAK = 2,
CT_CONTROLLER_W_RPAK = 3,
CT_MOUSE = 4,
CT_VOICE = 5,
CT_4K = 6,
CT_16K = 7,
CT_COUNT = 8,
} __anon_0xC003;
typedef struct __anon_0xC654 {
/* 0x000 */ char rom[36];
/* 0x024 */ int controllerConfiguration[4][20];
/* 0x164 */ int rumbleConfiguration;
/* 0x168 */ int storageDevice;
/* 0x16C */ int normalControllerConfig;
/* 0x170 */ int currentControllerConfig;
} __anon_0xC654; // size = 0x174
typedef enum __anon_0xC9F9 {
SV_NONE = 0,
SV_CODE = 1,
SV_FRAME = 2,
} __anon_0xC9F9;
typedef enum __anon_0xCB82 {
VI_TVMODE_NTSC_INT = 0,
VI_TVMODE_NTSC_DS = 1,
VI_TVMODE_NTSC_PROG = 2,
VI_TVMODE_PAL_INT = 4,
VI_TVMODE_PAL_DS = 5,
VI_TVMODE_EURGB60_INT = 20,
VI_TVMODE_EURGB60_DS = 21,
VI_TVMODE_MPAL_INT = 8,
VI_TVMODE_MPAL_DS = 9,
VI_TVMODE_DEBUG_INT = 12,
VI_TVMODE_DEBUG_PAL_INT = 16,
VI_TVMODE_DEBUG_PAL_DS = 17,
} __anon_0xCB82;
typedef enum __anon_0xCCCC {
VI_XFBMODE_SF = 0,
VI_XFBMODE_DF = 1,
} __anon_0xCCCC;
typedef struct _GXRenderModeObj {
/* 0x00 */ enum __anon_0xCB82 viTVmode;
/* 0x04 */ u16 fbWidth;
/* 0x06 */ u16 efbHeight;
/* 0x08 */ u16 xfbHeight;
/* 0x0A */ u16 viXOrigin;
/* 0x0C */ u16 viYOrigin;
/* 0x0E */ u16 viWidth;
/* 0x10 */ u16 viHeight;
/* 0x14 */ enum __anon_0xCCCC xFBmode;
/* 0x18 */ u8 field_rendering;
/* 0x19 */ u8 aa;
/* 0x1A */ u8 sample_pattern[12][2];
/* 0x32 */ u8 vfilter[7];
} __anon_0xCD7D; // size = 0x3C
// size = 0x4, address = 0x8013559C
struct _GXRenderModeObj* rmode;
// size = 0x4, address = 0x80135644
int gMovieErrorToggle;
typedef struct DVDDiskID {
/* 0x0 */ char gameName[4];
/* 0x4 */ char company[2];
/* 0x6 */ u8 diskNumber;
/* 0x7 */ u8 gameVersion;
/* 0x8 */ u8 streaming;
/* 0x9 */ u8 streamingBufSize;
/* 0xA */ u8 padding[22];
} __anon_0xD175; // size = 0x20
typedef struct DVDCommandBlock {
/* 0x00 */ struct DVDCommandBlock* next;
/* 0x04 */ struct DVDCommandBlock* prev;
/* 0x08 */ u32 command;
/* 0x0C */ s32 state;
/* 0x10 */ u32 offset;
/* 0x14 */ u32 length;
/* 0x18 */ void* addr;
/* 0x1C */ u32 currTransferSize;
/* 0x20 */ u32 transferredSize;
/* 0x24 */ struct DVDDiskID* id;
/* 0x28 */ void (*callback)(s32, struct DVDCommandBlock*);
/* 0x2C */ void* userData;
} __anon_0xD2E5; // size = 0x30
typedef struct DVDFileInfo {
/* 0x00 */ struct DVDCommandBlock cb;
/* 0x30 */ u32 startAddr;
/* 0x34 */ u32 length;
/* 0x38 */ void (*callback)(s32, struct DVDFileInfo*);
} __anon_0xD50B; // size = 0x3C
typedef enum _GXTexFilter {
GX_NEAR = 0,
GX_LINEAR = 1,
GX_NEAR_MIP_NEAR = 2,
GX_LIN_MIP_NEAR = 3,
GX_NEAR_MIP_LIN = 4,
GX_LIN_MIP_LIN = 5,
} __anon_0xD740;
typedef struct __anon_0xD7D1 {
/* 0x00 */ u16 height;
/* 0x02 */ u16 width;
/* 0x04 */ u32 format;
/* 0x08 */ char* data;
/* 0x0C */ enum _GXTexWrapMode wrapS;
/* 0x10 */ enum _GXTexWrapMode wrapT;
/* 0x14 */ enum _GXTexFilter minFilter;
/* 0x18 */ enum _GXTexFilter magFilter;
/* 0x1C */ f32 LODBias;
/* 0x20 */ u8 edgeLODEnable;
/* 0x21 */ u8 minLOD;
/* 0x22 */ u8 maxLOD;
/* 0x23 */ u8 unpacked;
} __anon_0xD7D1; // size = 0x24
typedef enum _GXTlutFmt {
GX_TL_IA8 = 0,
GX_TL_RGB565 = 1,
GX_TL_RGB5A3 = 2,
GX_MAX_TLUTFMT = 3,
} __anon_0xD9C4;
typedef struct __anon_0xDA2C {
/* 0x0 */ u16 numEntries;
/* 0x2 */ u8 unpacked;
/* 0x3 */ u8 pad8;
/* 0x4 */ enum _GXTlutFmt format;
/* 0x8 */ char* data;
} __anon_0xDA2C; // size = 0xC
typedef struct __anon_0xDAF8 {
/* 0x0 */ struct __anon_0xD7D1* textureHeader;
/* 0x4 */ struct __anon_0xDA2C* CLUTHeader;
} __anon_0xDAF8; // size = 0x8
typedef struct __anon_0xDB69 {
/* 0x0 */ u32 versionNumber;
/* 0x4 */ u32 numDescriptors;
/* 0x8 */ struct __anon_0xDAF8* descriptorArray;
} __anon_0xDB69; // size = 0xC
typedef struct _GXTexObj {
/* 0x0 */ u32 dummy[8];
} __anon_0xE08E; // size = 0x20
// Range: 0x8000F0FC -> 0x8000F7CC
int simulatorGXInit() {
// Local variables
int i; // r31
struct _GXColor GX_DEFAULT_BG; // r1+0x58
struct _GXColor BLACK; // r1+0x54
struct _GXColor WHITE; // r1+0x50
f32 identity_mtx[3][4]; // r1+0x20
}
// Range: 0x8000F020 -> 0x8000F0FC
void simulatorUnpackTexPalette(struct __anon_0xDB69* pal) {
// Parameters
// struct __anon_0xDB69* pal; // r1+0x0
// Local variables
u16 i; // r4
}
// Erased
static void simulatorDEMOSwapBuffers() {
// References
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
}
// Erased
static void simulatorDEMODoneRender() {
// References
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
}
// Erased
static int simulatorDrawBlack() {
// Local variables
struct _GXColor color; // r1+0x6C
// References
// -> struct __anon_0x87F6* gpFrame;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
}
// Range: 0x8000EE18 -> 0x8000F020
int simulatorDVDShowError(int nStatus) {
// Parameters
// int nStatus; // r26
// Local variables
int continueToggle; // r28
enum __anon_0x61D7 nMessage; // r27
// References
// -> struct __anon_0x6EA4* gpSystem;
// -> int gDVDResetToggle;
// -> static int toggle$192;
}
// Range: 0x8000EDA8 -> 0x8000EE18
int simulatorDVDOpen(char* szNameFile, struct DVDFileInfo* pFileInfo) {
// Parameters
// char* szNameFile; // r30
// struct DVDFileInfo* pFileInfo; // r31
// Local variables
int nStatus; // r3
}
// Range: 0x8000ECC4 -> 0x8000EDA8
int simulatorDVDRead(struct DVDFileInfo* pFileInfo, void* anData, s32 nSizeRead, s32 nOffset,
void (*callback)(s32, struct DVDFileInfo*)) {
// Parameters
// struct DVDFileInfo* pFileInfo; // r26
// void* anData; // r27
// s32 nSizeRead; // r28
// s32 nOffset; // r29
// void (* callback)(s32, struct DVDFileInfo*); // r7
// Local variables
int nStatus; // r31
int bRetry; // r30
}
// Range: 0x8000ECA0 -> 0x8000ECC4
int simulatorPlayMovie() {}
// Range: 0x8000E484 -> 0x8000ECA0
int simulatorDrawImage(struct __anon_0xDB69* tpl, int nX0, int nY0, int drawBar, int percent) {
// Parameters
// struct __anon_0xDB69* tpl; // r22
// int nX0; // r30
// int nY0; // r23
// int drawBar; // r24
// int percent; // r25
// Local variables
struct _GXTexObj texObj; // r1+0xDC
struct _GXTexObj texObj2; // r1+0xBC
struct _GXColor color; // r1+0xB4
f32 identity_mtx[3][4]; // r1+0x84
f32 g2DviewMtx[3][4]; // r1+0x54
f32 g2[3][4]; // r1+0x24
// References
// -> struct __anon_0x87F6* gpFrame;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
// -> u8 gbar[1857];
// -> u8 TexCoords_u8[8];
// -> u32 Colors_u32[3];
// -> s16 Vert_s16Bar[12];
// -> s16 Vert_s16[12];
// -> static f32 gOrthoMtx[4][4];
}
// Range: 0x8000DBB4 -> 0x8000E484
int simulatorDrawYesNoImage(struct __anon_0xDB69* tplMessage, int nX0Message, int nY0Message,
struct __anon_0xDB69* tplYes, int nX0Yes, int nY0Yes, struct __anon_0xDB69* tplNo,
int nX0No, int nY0No) {
// Parameters
// struct __anon_0xDB69* tplMessage; // r21
// int nX0Message; // r22
// int nY0Message; // r30
// struct __anon_0xDB69* tplYes; // r23
// int nX0Yes; // r24
// int nY0Yes; // r25
// struct __anon_0xDB69* tplNo; // r26
// int nX0No; // r27
// int nY0No; // r28
// Local variables
struct _GXTexObj texObj; // r1+0xAC
struct _GXColor color0; // r1+0xA4
struct _GXColor color1; // r1+0xA0
f32 identity_mtx[3][4]; // r1+0x70
f32 g2DviewMtx[3][4]; // r1+0x40
// References
// -> struct __anon_0x87F6* gpFrame;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
// -> int gHighlightChoice;
// -> u8 TexCoords_u8[8];
// -> u32 Colors_u32[3];
// -> s16 VertNo_s16[12];
// -> s16 VertYes_s16[12];
// -> s16 Vert_s16[12];
// -> static f32 gOrthoMtx[4][4];
}
// Range: 0x8000D58C -> 0x8000DBB4
int simulatorDrawOKImage(struct __anon_0xDB69* tplMessage, int nX0Message, int nY0Message, struct __anon_0xDB69* tplOK,
int nX0OK, int nY0OK) {
// Parameters
// struct __anon_0xDB69* tplMessage; // r29
// int nX0Message; // r28
// int nY0Message; // r27
// struct __anon_0xDB69* tplOK; // r23
// int nX0OK; // r24
// int nY0OK; // r25
// Local variables
struct _GXTexObj texObj; // r1+0x98
struct _GXColor color0; // r1+0x94
struct _GXColor color1; // r1+0x90
f32 identity_mtx[3][4]; // r1+0x5C
f32 g2DviewMtx[3][4]; // r1+0x2C
// References
// -> struct __anon_0x87F6* gpFrame;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
// -> u8 TexCoords_u8[8];
// -> u32 Colors_u32[3];
// -> s16 VertYes_s16[12];
// -> s16 Vert_s16[12];
// -> static f32 gOrthoMtx[4][4];
}
// Range: 0x8000D35C -> 0x8000D58C
int simulatorDrawErrorMessage(enum __anon_0x61D7 simulatorErrorMessage, int drawBar, int percent) {
// Parameters
// enum __anon_0x61D7 simulatorErrorMessage; // r28
// int drawBar; // r29
// int percent; // r31
// References
// -> int gbDisplayedError;
// -> u8 gfatalErr[13025];
// -> u8 gnoDisk[7937];
// -> u8 gretryErr[9281];
// -> u8 greadingDisk[3137];
// -> u8 gwrongDisk[7937];
// -> u8 gcoverOpen[10433];
}
// Range: 0x8000D1F0 -> 0x8000D35C
int simulatorPrepareMessage(enum __anon_0x61D7 simulatorErrorMessage) {
// Parameters
// enum __anon_0x61D7 simulatorErrorMessage; // r1+0x8
// Local variables
struct DVDFileInfo fileInfo; // r1+0xC
// References
// -> char gpErrorMessageBuffer[20480];
// -> unsigned int gmsg_gf02Size;
// -> enum __anon_0x61D7 simulatorMessageCurrent;
// -> unsigned int gmsg_sv09Size;
// -> unsigned int gmsg_in02Size;
}
// Erased
static int simulatorDrawErrorMessageFromDVD(int drawBar, int percent) {
// Parameters
// int drawBar; // r29
// int percent; // r30
// References
// -> char gpErrorMessageBuffer[20480];
}
// Range: 0x8000CF24 -> 0x8000D1F0
int simulatorDrawYesNoMessageLoop(struct __anon_0xDB69* simulatorQuestion, int* yes) {
// Parameters
// struct __anon_0xDB69* simulatorQuestion; // r26
// int* yes; // r27
// References
// -> struct __anon_0x6EA4* gpSystem;
// -> struct __anon_0xAD2F DemoPad[4];
// -> int gButtonDownToggle;
// -> u8 gno[1473];
// -> u8 gyes[1473];
// -> int gHighlightChoice;
}
// Range: 0x8000CB7C -> 0x8000CF24
int simulatorDrawYesNoMessage(enum __anon_0x61D7 simulatorMessage, int* yes) {
// Parameters
// enum __anon_0x61D7 simulatorMessage; // r1+0x8
// int* yes; // r30
// Local variables
struct DVDFileInfo fileInfo; // r1+0x10
// References
// -> char gpErrorMessageBuffer[20480];
// -> unsigned int gmsg_sv08Size;
// -> enum __anon_0x61D7 simulatorMessageCurrent;
// -> unsigned int gmsg_sv06_5Size;
// -> unsigned int gmsg_sv06_4Size;
// -> unsigned int gmsg_in01Size;
// -> unsigned int gmsg_gf01Size;
// -> unsigned int gmsg_ld07Size;
// -> unsigned int gmsg_ld06_4Size;
// -> unsigned int gmsg_ld05_2Size;
}
// Erased
static int simulatorDrawOKMessageLoop(struct __anon_0xDB69* simulatorMessage) {
// Parameters
// struct __anon_0xDB69* simulatorMessage; // r27
// References
// -> int gButtonDownToggle;
// -> struct __anon_0x6EA4* gpSystem;
// -> struct __anon_0xAD2F DemoPad[4];
// -> u8 gmesgOK[833];
// -> u8 gyes[1473];
}
// Range: 0x80009A30 -> 0x8000CB7C
int simulatorDrawErrorMessageWait(enum __anon_0x61D7 simulatorErrorMessage) {
// Parameters
// enum __anon_0x61D7 simulatorErrorMessage; // r1+0x8
// Local variables
struct DVDFileInfo fileInfo; // r1+0x80
// References
// -> int gButtonDownToggle;
// -> struct __anon_0x6EA4* gpSystem;
// -> struct __anon_0xAD2F DemoPad[4];
// -> u8 gmesgOK[833];
// -> char gpErrorMessageBuffer[20480];
// -> u8 gyes[1473];
// -> unsigned int gmsg_sv_shareSize;
// -> enum __anon_0x61D7 simulatorMessageCurrent;
// -> unsigned int gmsg_sv12Size;
// -> unsigned int gmsg_sv11Size;
// -> unsigned int gmsg_sv10Size;
// -> unsigned int gmsg_sv07Size;
// -> unsigned int gmsg_sv06_3Size;
// -> unsigned int gmsg_sv06_2Size;
// -> unsigned int gmsg_sv06_1Size;
// -> unsigned int gmsg_sv05_1Size;
// -> unsigned int gmsg_sv04Size;
// -> unsigned int gmsg_sv03Size;
// -> unsigned int gmsg_sv02Size;
// -> unsigned int gmsg_sv01_2Size;
// -> unsigned int gmsg_sv01Size;
// -> unsigned int gmsg_in05Size;
// -> unsigned int gmsg_in04Size;
// -> unsigned int gmsg_in03Size;
// -> unsigned int gmsg_gf06Size;
// -> unsigned int gmsg_gf05Size;
// -> unsigned int gmsg_gf04Size;
// -> unsigned int gmsg_gf03Size;
// -> unsigned int gmsg_ld06_3Size;
// -> unsigned int gmsg_ld06_2Size;
// -> unsigned int gmsg_ld06_1Size;
// -> unsigned int gmsg_ld05_1Size;
// -> unsigned int gmsg_ld04Size;
// -> unsigned int gmsg_ld03Size;
// -> unsigned int gmsg_ld02Size;
// -> unsigned int gmsg_ld01Size;
}
// Range: 0x80009980 -> 0x80009A30
void simulatorReset(int IPL, int forceMenu) {
// Parameters
// int IPL; // r30
// int forceMenu; // r31
// References
// -> struct _MCARD mCard;
}
// Range: 0x80009824 -> 0x80009980
void simulatorResetAndPlayMovie() {
// Local variables
struct _GXColor color; // r1+0x14
struct _GXRenderModeObj* simrmode; // r31
// References
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
// -> int gMovieErrorToggle;
// -> struct _GXRenderModeObj* rmode;
// -> struct _MCARD mCard;
}
// Erased
static int simulatorSetPart() {}
// Erased
static int simulatorAddXtraTime() {}
// Erased
static int simulatorShowParts() {}
// Erased
static enum __anon_0xC9F9 simulatorGetView() {
// References
// -> static struct __anon_0x57A1* gpCode;
// -> struct __anon_0x87F6* gpFrame;
}
// Erased
static int simulatorSetView(enum __anon_0xC9F9 eView) {
// Parameters
// enum __anon_0xC9F9 eView; // r1+0x8
// References
// -> static struct __anon_0x57A1* gpCode;
// -> struct __anon_0x87F6* gpFrame;
}
// Range: 0x8000974C -> 0x80009824
int simulatorSetControllerMap(unsigned int* mapData, int channel) {
// Parameters
// unsigned int* mapData; // r1+0x0
// int channel; // r1+0x4
// Local variables
int i; // r7
// References
// -> static unsigned int gContMap[4][20];
}
// Range: 0x80009684 -> 0x8000974C
int simulatorCopyControllerMap(unsigned int* mapDataOutput, unsigned int* mapDataInput) {
// Parameters
// unsigned int* mapDataOutput; // r1+0x0
// unsigned int* mapDataInput; // r1+0x4
// Local variables
int i; // r7
}
// Erased
static int simulatorChangeControllerConfig(int channel, int nCurrButton) {
// Parameters
// int channel; // r31
// int nCurrButton; // r1+0xC
// References
// -> static unsigned int gContMap[4][20];
// -> static struct __anon_0xC654 gSystemRomConfigurationList[1];
// -> struct __anon_0x6EA4* gpSystem;
// -> struct _MCARD mCard;
}
// Range: 0x80009110 -> 0x80009684
int simulatorReadController(int channel, unsigned int* anData) {
// Parameters
// int channel; // r29
// unsigned int* anData; // r30
// Local variables
f32 subStickTest; // f1
int stickX; // r1+0x8
int stickY; // r1+0x8
int subStickX; // r6
int subStickY; // r7
int nDirButton; // r3
// References
// -> static unsigned int gContMap[4][20];
// -> static unsigned int nCurrButton$702;
// -> struct __anon_0xAD2F DemoPad[4];
// -> int gButtonDownToggle;
// -> static unsigned int nPrevButton$701;
}
// Erased
static void DEMOInitWindow(int nSizeX, int nSizeY, int nColorR, int nColorG, int nColorB) {
// Parameters
// int nSizeX; // r3
// int nSizeY; // r1+0xC
// int nColorR; // r29
// int nColorG; // r30
// int nColorB; // r31
// Local variables
struct _GXColor color; // r1+0x20
}
// Range: 0x80009108 -> 0x80009110
int simulatorShowLoad() {}
// Erased
static int simulatorResetController() {}
// Range: 0x800090B4 -> 0x80009108
int simulatorDetectController(int channel) {
// Parameters
// int channel; // r31
// Local variables
struct PADStatus status[4]; // r1+0xC
}
// Range: 0x80009038 -> 0x800090B4
int simulatorReadPak(int channel, u16 address, u8* data) {
// Parameters
// int channel; // r29
// u16 address; // r30
// u8* data; // r31
// Local variables
enum __anon_0xC003 type; // r1+0x14
// References
// -> struct __anon_0x6EA4* gpSystem;
}
// Range: 0x80008FBC -> 0x80009038
int simulatorWritePak(int channel, u16 address, u8* data) {
// Parameters
// int channel; // r29
// u16 address; // r30
// u8* data; // r31
// Local variables
enum __anon_0xC003 type; // r1+0x14
// References
// -> struct __anon_0x6EA4* gpSystem;
}
// Range: 0x80008F4C -> 0x80008FBC
int simulatorReadEEPROM(u8 address, u8* data) {
// Parameters
// u8 address; // r30
// u8* data; // r31
// Local variables
int size; // r1+0x10
// References
// -> struct _MCARD mCard;
// -> struct __anon_0x6EA4* gpSystem;
}
// Range: 0x80008EDC -> 0x80008F4C
int simulatorWriteEEPROM(u8 address, u8* data) {
// Parameters
// u8 address; // r30
// u8* data; // r31
// Local variables
int size; // r1+0x10
// References
// -> struct _MCARD mCard;
// -> struct __anon_0x6EA4* gpSystem;
}
// Range: 0x80008EA8 -> 0x80008EDC
int simulatorReadSRAM(unsigned int address, u8* data, int size) {
// Parameters
// unsigned int address; // r4
// u8* data; // r6
// int size; // r5
// References
// -> struct _MCARD mCard;
}
// Range: 0x80008E74 -> 0x80008EA8
int simulatorWriteSRAM(unsigned int address, u8* data, int size) {
// Parameters
// unsigned int address; // r4
// u8* data; // r6
// int size; // r5
// References
// -> struct _MCARD mCard;
}
// Range: 0x80008E40 -> 0x80008E74
int simulatorReadFLASH(unsigned int address, u8* data, int size) {
// Parameters
// unsigned int address; // r4
// u8* data; // r6
// int size; // r5
// References
// -> struct _MCARD mCard;
}
// Range: 0x80008E0C -> 0x80008E40
int simulatorWriteFLASH(unsigned int address, u8* data, int size) {
// Parameters
// unsigned int address; // r4
// u8* data; // r6
// int size; // r5
// References
// -> struct _MCARD mCard;
}
// Range: 0x80008DE4 -> 0x80008E0C
int simulatorRumbleStart(int channel) {
// Parameters
// int channel; // r3
}
// Range: 0x80008DBC -> 0x80008DE4
int simulatorRumbleStop(int channel) {
// Parameters
// int channel; // r3
}
// Erased
static void* sScreenshotAlloc() {}
// Erased
static void sScreenshotFree() {}
// Range: 0x80008BDC -> 0x80008DBC
int simulatorTestReset(int IPL, int forceMenu, int allowReset, int usePreviousSettings) {
// Parameters
// int IPL; // r24
// int forceMenu; // r25
// int allowReset; // r26
// int usePreviousSettings; // r27
// Local variables
unsigned int bFlag; // r1+0x8
unsigned int nTick; // r1+0x8
int prevIPLSetting; // r28
int prevForceMenuSetting; // r27
int prevAllowResetSetting; // r1+0x8
// References
// -> static unsigned int gnTickReset;
// -> static int gbReset;
// -> struct __anon_0xAD2F DemoPad[4];
// -> int gResetBeginFlag;
// -> int gPreviousAllowResetSetting;
// -> int gPreviousForceMenuSetting;
// -> int gPreviousIPLSetting;
}
// Erased
static int simulatorDrawText(int nX, int nY, char* szText, int nColorR, int nColorG, int nColorB) {
// Parameters
// int nX; // r26
// int nY; // r27
// char* szText; // r28
// int nColorR; // r29
// int nColorG; // r30
// int nColorB; // r31
// Local variables
struct _GXColor color; // r1+0x24
}
// Range: 0x80008B44 -> 0x80008BDC
int simulatorDrawMCardText() {
// References
// -> char gpErrorMessageBuffer[20480];
}
// Range: 0x80008A14 -> 0x80008B44
int simulatorMCardPollDrawBar() {
// Local variables
f32 rate; // r1+0x8
int nBytes; // r1+0x8
// References
// -> char gpErrorMessageBuffer[20480];
// -> struct _MCARD mCard;
}
// Range: 0x800088E4 -> 0x80008A14
int simulatorMCardPollDrawFormatBar() {
// Local variables
f32 rate; // r1+0x8
int nBytes; // r1+0x8
// References
// -> char gpErrorMessageBuffer[20480];
// -> struct _MCARD mCard;
}
// Range: 0x800086DC -> 0x800088E4
static int simulatorDrawCursor(int nX, int nY) {
// Parameters
// int nX; // r30
// int nY; // r31
// Local variables
struct _GXColor color; // r1+0x18
int nTick; // r4
}
// Erased
static int simulatorDrawYesNoScreen(char* line1, char* line2, char* line3, int* yes) {
// Parameters
// char* line1; // r21
// char* line2; // r22
// char* line3; // r23
// int* yes; // r24
// Local variables
int nCount; // r25
// References
// -> struct __anon_0xAD2F DemoPad[4];
// -> int gButtonDownToggle;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
}
// Erased
static int simulatorDrawOKScreen(char* line1, char* line2, char* line3) {
// Parameters
// char* line1; // r22
// char* line2; // r23
// char* line3; // r24
// Local variables
int nCount; // r25
// References
// -> int gButtonDownToggle;
// -> struct __anon_0xAD2F DemoPad[4];
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
}
// Erased
static int simulatorPickROM() {}
// Erased
static int simulatorMenu() {}
// Erased
static void MyGXInit() {
// Local variables
s32 i; // r31
f32 identity_mtx[3][4]; // r1+0x50
}
// Erased
static int editSoundMenu() {
// Local variables
s32* menuValues[3]; // r1+0x94
s32 menuMinMax[3][2]; // r1+0x7C
char* menuNames[3]; // r1+0x70
char* menuHelp[3]; // r1+0x64
char str[32]; // r1+0x44
s32 curItem; // r24
s32 bDone; // r1+0xA0
s32 i; // r6
u32 heldButtons; // r7
u32 buttons; // r8
u32 downButtons; // r1+0x8
u8 holdCount[16]; // r1+0x34
struct _GXColor color[3]; // r1+0x28
s32 step; // r20
u32 bit; // r1+0x8
struct _GXColor* colorP; // r31
// References
// -> struct __anon_0xAD2F DemoPad[4];
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> void* DemoFrameBuffer1;
// -> u8 DemoStatEnable;
}
// Range: 0x80008578 -> 0x800086DC
static int simulatorParseArguments() {
// Local variables
int iArgument; // r23
char* szText; // r1+0x14
char* szValue; // r1+0x10
// References
// -> static char* gaszArgument[8];
}
// Range: 0x80008538 -> 0x80008578
int simulatorGetArgument(enum __anon_0xA982 eType, char** pszArgument) {
// Parameters
// enum __anon_0xA982 eType; // r1+0x0
// char** pszArgument; // r1+0x4
// References
// -> static char* gaszArgument[8];
}
// Range: 0x80007F80 -> 0x80008538
int xlMain() {
// Local variables
struct _GXColor color; // r1+0x3C
enum __anon_0xA6E7 eMode; // r1+0x38
int nSize0; // r1+0x34
int nSize1; // r1+0x30
int iName; // r5
char* szNameROM; // r1+0x2C
char acNameROM[32]; // r1+0xC
int rumbleYes; // r1+0x8
// References
// -> static struct __anon_0x57A1* gpCode;
// -> struct __anon_0x87F6* gpFrame;
// -> struct __anon_0x7181* gpSound;
// -> struct __anon_0x6EA4* gpSystem;
// -> struct _XL_OBJECTTYPE gClassSystem;
// -> struct _XL_OBJECTTYPE gClassSound;
// -> struct _XL_OBJECTTYPE gClassFrame;
// -> struct _XL_OBJECTTYPE gClassCode;
// -> static char* gaszArgument[8];
// -> struct _MCARD mCard;
// -> static unsigned int gnTickReset;
// -> static int gbReset;
// -> u8 gmesgOK[833];
// -> u8 gno[1473];
// -> u8 gyes[1473];
// -> u8 gbar[1857];
// -> u8 greadingDisk[3137];
// -> u8 gwrongDisk[7937];
// -> u8 gfatalErr[13025];
// -> u8 gretryErr[9281];
// -> u8 gnoDisk[7937];
// -> u8 gcoverOpen[10433];
// -> void* DemoFrameBuffer1;
// -> void* DemoCurrentBuffer;
// -> void* DemoFrameBuffer2;
// -> u8 DemoStatEnable;
// -> int gResetBeginFlag;
// -> int gButtonDownToggle;
// -> int gbDisplayedError;
// -> int gDVDResetToggle;
}