mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Fixes in PR #50
- Rename "sGraph_UpdateTime" to "sGraphUpdateTime" - Rename "Graph_Ct"/"Graph_Dt" to "Graph_Init"/"Graph_Destroy" - Change the LOG_STRING macro - Rename "LOG_VALUE" to "LOG_NUM" - Fix brace style - Rename "UcodeInfo"/"UcodeDisas" to "UCodeInfo"/"UCodeDisas" - Fix field names in "UCodeDisas" - Fix typo in "GraphicsContext" - Change the size of unknown fields in "GraphicsContext" to hex - Rename "game_init_func" to "gameStateInitFunc"
This commit is contained in:
parent
168d90b6b0
commit
02eaaa2039
12 changed files with 82 additions and 85 deletions
|
@ -235,8 +235,7 @@ typedef struct {
|
|||
/* 0x000C */ Gfx* d;
|
||||
} TwoHeadGfxArena; // size = 0x10
|
||||
|
||||
typedef struct OSScTask
|
||||
{
|
||||
typedef struct OSScTask {
|
||||
/* 0x00 */ struct OSScTask* next;
|
||||
/* 0x04 */ u32 state;
|
||||
/* 0x08 */ u32 flags;
|
||||
|
@ -246,18 +245,17 @@ typedef struct OSScTask
|
|||
/* 0x54 */ OSMesg msg;
|
||||
} OSScTask;
|
||||
|
||||
typedef struct GraphicsContex
|
||||
{
|
||||
typedef struct GraphicsContext {
|
||||
/* 0x0000 */ Gfx* polyOpaBuffer;
|
||||
/* 0x0004 */ Gfx* polyXluBuffer;
|
||||
/* 0x0008 */ char unk_008[8];
|
||||
/* 0x0008 */ char unk_008[0x08];
|
||||
/* 0x0010 */ Gfx* overlayBuffer;
|
||||
/* 0x0014 */ u32 unk_014;
|
||||
/* 0x0018 */ char unk_018[0x20];
|
||||
/* 0x0038 */ OSMesg msgBuff[8];
|
||||
/* 0x0038 */ OSMesg msgBuff[0x08];
|
||||
/* 0x0058 */ OSMesgQueue* schedMsgQ;
|
||||
/* 0x005C */ OSMesgQueue queue;
|
||||
/* 0x0074 */ char unk_074[4];
|
||||
/* 0x0074 */ char unk_074[0x04];
|
||||
/* 0x0078 */ OSScTask task; // size of OSScTask might be wrong
|
||||
/* 0x00D0 */ char unk_0D0[0xE0];
|
||||
/* 0x01B0 */ Gfx* workBuffer;
|
||||
|
@ -270,14 +268,14 @@ typedef struct GraphicsContex
|
|||
/* 0x02C8 */ TwoHeadGfxArena polyXlu;
|
||||
/* 0x02D8 */ u32 gfxPoolIdx;
|
||||
/* 0x02DC */ u16* curFrameBuffer;
|
||||
/* 0x02E0 */ char unk_2E0[4];
|
||||
/* 0x02E0 */ char unk_2E0[0x04];
|
||||
/* 0x02E4 */ u32 viFeatures;
|
||||
/* 0x02E8 */ s32 fbIdx;
|
||||
/* 0x02EC */ void (*callback)(struct GraphicsContex*, u32);
|
||||
/* 0x02F0 */ u32 callbackParam;
|
||||
/* 0x02F4 */ f32 xScale;
|
||||
/* 0x02F8 */ f32 yScale;
|
||||
/* 0x02FC */ char unk_2FC[4];
|
||||
/* 0x02FC */ char unk_2FC[0x04];
|
||||
} GraphicsContext; // size = 0x300
|
||||
|
||||
typedef struct {
|
||||
|
@ -1363,32 +1361,32 @@ typedef struct {
|
|||
typedef struct {
|
||||
/* 0x00 */ u32 idx;
|
||||
/* 0x04 */ void* ptr;
|
||||
} UcodeInfo; // size = 0x8
|
||||
} UCodeInfo; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u32 segments[NUM_SEGMENTS];
|
||||
/* 0x40 */ u32 dl_stack[18];
|
||||
/* 0x88 */ u32 dl_depth;
|
||||
/* 0x8C */ u32 dl_cnt;
|
||||
/* 0x90 */ u32 vtx_cnt;
|
||||
/* 0x94 */ u32 spvtx_cnt;
|
||||
/* 0x98 */ u32 tri1_cnt;
|
||||
/* 0x9C */ u32 tri2_cnt;
|
||||
/* 0xA0 */ u32 quad_cnt;
|
||||
/* 0xA4 */ u32 line_cnt;
|
||||
/* 0xA8 */ u32 loaducode_cnt;
|
||||
/* 0x40 */ u32 dlStack[18];
|
||||
/* 0x88 */ u32 dlDepth;
|
||||
/* 0x8C */ u32 dlCnt;
|
||||
/* 0x90 */ u32 vtxCnt;
|
||||
/* 0x94 */ u32 spvtxCnt;
|
||||
/* 0x98 */ u32 tri1Cnt;
|
||||
/* 0x9C */ u32 tri2Cnt;
|
||||
/* 0xA0 */ u32 quadCnt;
|
||||
/* 0xA4 */ u32 lineCnt;
|
||||
/* 0xA8 */ u32 loaducodeCnt;
|
||||
/* 0xAC */ u32 pipeSyncRequired;
|
||||
/* 0xB0 */ u32 tileSyncRequired;
|
||||
/* 0xB4 */ u32 loadSyncRequired;
|
||||
/* 0xB8 */ u32 sync_err;
|
||||
/* 0xB8 */ u32 syncErr;
|
||||
/* 0xBC */ u32 enableLog;
|
||||
/* 0xC0 */ u32 ucodeInfoIdx;
|
||||
/* 0xC4 */ u32 ucodeInfoCount;
|
||||
/* 0xC8 */ UcodeInfo* ucodeInfo;
|
||||
/* 0xC8 */ UCodeInfo* ucodeInfo;
|
||||
/* 0xCC */ u32 modeH;
|
||||
/* 0xD0 */ u32 modeL;
|
||||
/* 0xD4 */ u32 geometryMode;
|
||||
} UcodeDisas; // size = 0xD8
|
||||
} UCodeDisas; // size = 0xD8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16* fb1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue