summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2023-07-25 06:17:19 +0300
committerGitHub <noreply@github.com>2023-07-25 06:17:19 +0300
commit7cda554a65402f09b54105d1cc39df61bd6053e5 (patch)
tree153270b49ca9b8b43bd16c56569748c9958cc9ec /include
parent9cf73bea8bb964ab19fc194528b020e870e14f01 (diff)
parentb070730d1848e452fe65d3075fd4ad9f3e8ef113 (diff)
Merge pull request #388 from Yotona/TRK-work
TRK work
Diffstat (limited to 'include')
-rw-r--r--include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h2
-rw-r--r--include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/nubevent.h13
-rw-r--r--include/TRK_MINNOW_DOLPHIN/ppc/Generic/targimpl.h17
3 files changed, 31 insertions, 1 deletions
diff --git a/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h b/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h
index e4108ba657..9c85afb27a 100644
--- a/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h
+++ b/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h
@@ -4,7 +4,7 @@
#include "dolphin/types.h"
typedef struct TRKBuffer {
- u8 _00[4];
+ u32 _00;
u32 _04;
s32 _08;
u32 _0C;
diff --git a/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/nubevent.h b/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/nubevent.h
index 96a4afba5e..6e0ac836c5 100644
--- a/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/nubevent.h
+++ b/include/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/nubevent.h
@@ -3,4 +3,17 @@
#include "dolphin/types.h"
+typedef struct TRKEventQueue {
+ s32 _00;
+ s32 _04;
+ s32 _08;
+ s32 _0C;
+ s32 _10;
+ s32 _14;
+ s32 _18;
+ s32 _1C;
+ s32 _20;
+ u32 _24;
+} TRKEventQueue;
+
#endif /* METROTRK_PORTABLE_NUBEVENT_H */
diff --git a/include/TRK_MINNOW_DOLPHIN/ppc/Generic/targimpl.h b/include/TRK_MINNOW_DOLPHIN/ppc/Generic/targimpl.h
index c256aea9db..ed47e45b34 100644
--- a/include/TRK_MINNOW_DOLPHIN/ppc/Generic/targimpl.h
+++ b/include/TRK_MINNOW_DOLPHIN/ppc/Generic/targimpl.h
@@ -6,4 +6,21 @@
void TRKSwapAndGo();
void TRKTargetSetStopped(s32);
+typedef struct TRKState {
+ /* 0x00 */ u32 field_0x00[35];
+ /* 0x8C */ u32 msr;
+ /* 0x90 */ u32 field_0x90[2];
+ /* 0x98 */ u32 target;
+ /* 0x9C */ u32 field_0x9C;
+ /* 0xA0 */ void* inputPendingPtr;
+} TRKState;
+TRKState gTRKState;
+
+typedef struct TRKCPUState {
+ /* 0x00 */ u32 field_0x00[32];
+ /* 0x80 */ u32 pc;
+ /* 0x84 */ u32 field_0x84[235];
+} TRKCPUState;
+TRKCPUState gTRKCPUState;
+
#endif /* PPC_GENERIC_TARGIMPL_H */