Making some TRK progress (#564)

This commit is contained in:
mrshigure 2025-02-07 06:48:22 -08:00 committed by GitHub
parent 64f087c2c9
commit 66a9a044fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 434 additions and 139 deletions

View file

@ -254,6 +254,9 @@ typedef struct ProcessorRestoreFlags_PPC {
void TRKSaveExtended1Block();
void SetUseSerialIO(u8);
u8 GetUseSerialIO(void);
#define SPR_XER 1
#define SPR_LR 8
#define SPR_CTR 9

View file

@ -8,7 +8,7 @@ typedef struct _TRK_Msg {
u8 _00[8];
u32 m_msgLength;
u32 _0C;
u32 m_msg;
u8 m_msg[4]; // TODO: unknown array length
} TRK_Msg;
#ifdef __cplusplus

View file

@ -12,7 +12,7 @@ DSError TRKInitializeMessageBuffers(void);
DSError TRKSetBufferPosition(TRKBuffer* msg, u32 pos);
void* TRKGetBuffer(int);
void TRKResetBuffer(TRKBuffer* msg, BOOL keepData);
void TRKResetBuffer(TRKBuffer* msg, u8 keepData);
void* TRKGetBuffer(int idx);
void TRKReleaseBuffer(int idx);
DSError TRKGetFreeBuffer(int* msgID, TRKBuffer** outMsg);