Skip to content

Commit 48e58de

Browse files
authored
Merge pull request pret#215 from dplewis/frag1
Fragment 1 various functions
2 parents fdc8596 + 8b9bcc2 commit 48e58de

File tree

5 files changed

+509
-72
lines changed

5 files changed

+509
-72
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ ctx.c.m2c
2727
.vscode/*
2828
!.vscode/c_cpp_properties.json
2929
tools/vtxdis
30+
tools/permuter/
3031
.DS_Store

include/global.h

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,77 @@ typedef struct TrainerData {
535535
/* 0x03A */ char unk3A[0x1F6];
536536
} TrainerData; // size = 0x230
537537

538+
// GB Emulator State
539+
typedef struct unk_D_8122B2C0 {
540+
/* 0x00000 */ u8 unk_00[0x208];
541+
/* 0x00208 */ u8 unk_208[0x40];
542+
/* 0x00248 */ u8 unk_248[0x40];
543+
/* 0x00288 */ u8 unk_288[0x100];
544+
/* 0x00388 */ u8 unk_388[0x400];
545+
/* 0x00788 */ u8 unk_788[0x4000];
546+
/* 0x04788 */ u8 unk_4788[0xC00];
547+
/* 0x05388 */ s32 unk_5388;
548+
/* 0x0538C */ char unk0538C[4];
549+
/* 0x05390 */ u32 unk_5390;
550+
/* 0x05394 */ u32 unk_5394;
551+
/* 0x05398 */ u32 unk_5398;
552+
/* 0x0539C */ u32 unk_539C;
553+
/* 0x53A0 */ char unk053A0[0x8];
554+
/* 0x053A8 */ void* unk_53A8;
555+
/* 0x053AC */ void* unk_53AC;
556+
/* 0x053B0 */ void* unk_53B0;
557+
/* 0x053B4 */ void* unk_53B4;
558+
/* 0x053B8 */ char unk053B8[0x4];
559+
/* 0x053BC */ void* unk_53BC;
560+
/* 0x053C0 */ char unk053C0[0x2E];
561+
/* 0x053EE */ u16 unk_53EE;
562+
/* 0x053F0 */ u16 unk_53F0;
563+
/* 0x053F2 */ char unk053F1[0xA];
564+
/* 0x053FC */ u8 unk_53FC;
565+
/* 0x053FD */ u8 unk_53FD;
566+
/* 0x053FE */ u8 unk_53FE;
567+
/* 0x053FF */ char unk053FF[0x86];
568+
/* 0x05485 */ u8 unk_5485;
569+
/* 0x05486 */ char unk05486[0x8];
570+
/* 0x0548E */ u8 unk_548E;
571+
/* 0x0548F */ char unk0548F[0xD];
572+
/* 0x0549C */ u8 unk_549C[0x100];
573+
/* 0x0559C */ u8 unk_559C[0x10];
574+
/* 0x055AC */ u8 unk_55AC[0x40];
575+
/* 0x055EC */ u8 unk_55EC[0x40];
576+
/* 0x0562C */ u8 unk_562C[0x200];
577+
/* 0x0582C */ u8 unk_582C[0x200];
578+
/* 0x05A2C */ u8 unk_5A2C[0x200];
579+
/* 0x05C2C */ char unk05C2C[0x2C];
580+
/* 0x05C58 */ void* unk_5C58;
581+
/* 0x05C5C */ char unk_5C5C[0x50];
582+
/* 0x05CAC */ OSGbpakId gbpakId;
583+
/* 0x05CFC */ OSPfs* pfs;
584+
/* 0x05D00 */ char unk05D00[0x64];
585+
/* 0x05D64 */ u8* transferBuffer;
586+
/* 0x05D68 */ u32 gbAddress;
587+
/* 0x05D6C */ s32 transferSize;
588+
/* 0x05D70 */ u32 unk_5D70[4];
589+
/* 0x05D80 */ u32 unk_5D80[4];
590+
/* 0x05D90 */ u32 unk_5D90[4];
591+
/* 0x05DA0 */ u16 unk_5DA0;
592+
/* 0x05DA2 */ u16 unk_5DA2;
593+
/* 0x05DA4 */ char unk05DA4[0x20];
594+
/* 0x05DC4 */ u8 unk_5DC4;
595+
/* 0x05DC5 */ u8 unk_5DC5;
596+
/* 0x05DC6 */ char unk05DC6[0x2];
597+
/* 0x05DC8 */ volatile u8 unk_5DC8;
598+
/* 0x05DC9 */ u8 unk_5DC9;
599+
/* 0x05DCA */ u8 unk_5DCA;
600+
/* 0x05DCB */ u8 status;
601+
/* 0x05DCC */ u8 unk_5DCC;
602+
/* 0x05DCD */ char unk05DCD[1];
603+
/* 0x05DCE */ u8 unk_5DCE;
604+
/* 0x05DCF */ u8 unk_5DCF;
605+
/* 0x05DD0 */ u8 unk_5DD0;
606+
/* 0x05DD1 */ u8 unk05DD1[0x15287];
607+
} unk_D_8122B2C0; // size = 0x1B058
608+
538609
extern s16 D_80075E40[];
539610

540611
#include "variables.h"

src/fragments/1/fragment1.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ void func_81206D9C(unk_D_800AA660*);
88
void func_81206E64(unk_D_800AA660*);
99
void func_81206F38(unk_D_800AA664*);
1010
void func_81209078();
11+
void func_81209870(unk_D_8122B2C0*);
1112
s32 osGbSetNextBuffer(void*, s32);
1213

1314
#endif /* _FRAGMENT1_H_ */

0 commit comments

Comments
 (0)