mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-24 15:07:09 -05:00
Minor struct/externs cleanup
This commit is contained in:
parent
c8f46ac839
commit
847ff2cbac
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef GUARD_INPUT_H
|
||||
#define GUARD_INPUT_H
|
||||
|
||||
// size: 0x10
|
||||
struct Inputs
|
||||
{
|
||||
/* 0x0 */ u16 held;
|
||||
|
|
@ -8,46 +9,47 @@ struct Inputs
|
|||
/* 0x4 */ u16 repeated;
|
||||
/* 0x6 */ u16 shortPress;
|
||||
/* 0x8 */ u16 heldDpad;
|
||||
/* 0xA..0xB - padding */
|
||||
/* 0xC */ s32 repeatTimerDpad;
|
||||
};
|
||||
|
||||
extern struct Inputs gRealInputs;
|
||||
|
||||
// size: 0x8
|
||||
struct InputTimers
|
||||
{
|
||||
/* 0x0 */ s16 holdTimerB;
|
||||
/* 0x2 */ s16 holdTimerR;
|
||||
/* 0x4 */ u16 unk4;
|
||||
/* 0x6 */ u16 unk6;
|
||||
u16 unk4;
|
||||
u16 unk6;
|
||||
};
|
||||
|
||||
// size: 0x2C
|
||||
struct UnusedInputStruct
|
||||
{
|
||||
/* 0x0 */ u16 unk0;
|
||||
/* 0x2 */ u16 unk2;
|
||||
/* 0x4 */ u16 unk4;
|
||||
/* 0x6 */ u16 unk6;
|
||||
/* 0x8 */ u16 unk8;
|
||||
/* 0xA */ u16 unkA;
|
||||
/* 0xC */ u16 unkC;
|
||||
/* 0xE */ u16 unkE;
|
||||
/* 0x10 */ u16 unk10;
|
||||
/* 0x12 */ u16 unk12;
|
||||
/* 0x14 */ u16 unk14;
|
||||
/* 0x16 */ u16 unk16;
|
||||
/* 0x18 */ u16 unk18;
|
||||
/* 0x1A */ u16 unk1A;
|
||||
/* 0x1C */ u16 unk1C;
|
||||
/* 0x1E */ u16 unk1E;
|
||||
/* 0x20 */ u32 unk20;
|
||||
/* 0x24 */ u16 unk24;
|
||||
/* 0x24 */ u16 unk26;
|
||||
/* 0x28 */ u8 unk28;
|
||||
/* 0x29 */ u8 unk29;
|
||||
/* 0x2A..0x2B - padding */
|
||||
u16 unk0;
|
||||
u16 unk2;
|
||||
u16 unk4;
|
||||
u16 unk6;
|
||||
u16 unk8;
|
||||
u16 unkA;
|
||||
u16 unkC;
|
||||
u16 unkE;
|
||||
u16 unk10;
|
||||
u16 unk12;
|
||||
u16 unk14;
|
||||
u16 unk16;
|
||||
u16 unk18;
|
||||
u16 unk1A;
|
||||
u16 unk1C;
|
||||
u16 unk1E;
|
||||
u32 unk20;
|
||||
u16 unk24;
|
||||
u16 unk26;
|
||||
u8 unk28;
|
||||
u8 unk29;
|
||||
};
|
||||
|
||||
// size: 0xC
|
||||
struct MenuInputStructSub
|
||||
{
|
||||
u8 unk0;
|
||||
|
|
@ -60,27 +62,28 @@ struct MenuInputStructSub
|
|||
s16 unkA;
|
||||
};
|
||||
|
||||
// size: 0x2C
|
||||
struct MenuInputStruct
|
||||
{
|
||||
s32 unk0;
|
||||
/* 0x4 */ u16 unk4;
|
||||
/* 0x6 */ s16 unk6;
|
||||
/* 0x8 */ u16 unk8;
|
||||
/* 0x8 */ u16 unkA;
|
||||
/* 0xC */ u16 unkC;
|
||||
/* 0xE */ u16 unkE;
|
||||
/* 0x10 */ u32 unk10;
|
||||
/* 0x14 */ s16 unk14;
|
||||
/* 0x16 */ u16 unk16;
|
||||
u16 unk4;
|
||||
s16 unk6;
|
||||
u16 unk8;
|
||||
u16 unkA;
|
||||
u16 unkC;
|
||||
u16 unkE;
|
||||
u32 unk10;
|
||||
s16 unk14;
|
||||
u16 unk16;
|
||||
/* 0x18 */ s16 menuIndex;
|
||||
/* 0x1A */ s16 unk1A;
|
||||
/* 0x1C */ s16 unk1C;
|
||||
/* 0x1E */ s16 unk1E;
|
||||
/* 0x20 */ s16 unk20;
|
||||
/* 0x22 */ s16 unk22;
|
||||
/* 0x24 */ u16 unk24;
|
||||
u16 unk26;
|
||||
/* 0x28 */ struct MenuInputStructSub unk28;
|
||||
s16 unk1A;
|
||||
s16 unk1C;
|
||||
s16 unk1E;
|
||||
s16 unk20;
|
||||
s16 unk22;
|
||||
u16 unk24;
|
||||
u16 unk26;
|
||||
struct MenuInputStructSub unk28;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,18 +3,22 @@
|
|||
|
||||
#define HEAP_SIZE 0x24000
|
||||
|
||||
// size: 0x8
|
||||
struct HeapSettings
|
||||
{
|
||||
/* 0x0 */ u8 *start;
|
||||
/* 0x4 */ u32 size;
|
||||
};
|
||||
|
||||
struct HeapMemoryBlock {
|
||||
// size: 0xC
|
||||
struct HeapMemoryBlock
|
||||
{
|
||||
/* 0x0 */ u8 *start;
|
||||
/* 0x4 */ s32 size;
|
||||
/* 0x8 */ s32 allocatedSize;
|
||||
};
|
||||
|
||||
// size: 0x10
|
||||
struct HeapFreeListElement
|
||||
{
|
||||
/* 0x0 */ u32 unk_atb;
|
||||
|
|
@ -23,6 +27,7 @@ struct HeapFreeListElement
|
|||
/* 0xC */ struct HeapMemoryBlock block;
|
||||
};
|
||||
|
||||
// size: 0x1C
|
||||
struct HeapDescriptor
|
||||
{
|
||||
u32 unk0;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ struct UnkTextStruct2
|
|||
};
|
||||
|
||||
void LoadCharmaps(void);
|
||||
void SelectCharmap(u32);
|
||||
u32 xxx_update_some_bg_tiles(u32 a0);
|
||||
void sub_8006438(const struct UnkTextStruct2 *a0, u8 a1, u8 a2, u32 *a3);
|
||||
void sub_8006554(void *a0, void *a1, void *a2, void *a3, u32 a4, const struct UnkTextStruct2 *a5, u8 a6, u32 a7, u32 *a8, u32 a9);
|
||||
|
|
|
|||
|
|
@ -60,9 +60,6 @@ extern u32 sub_8031DCC();
|
|||
extern void sub_8031E10();
|
||||
extern void sub_8031E00();
|
||||
extern s32 sub_8001658(u32, u32);
|
||||
extern u8 sub_8099B94();
|
||||
extern void sub_8099A5C(u32, u32, u32*);
|
||||
extern void sub_8099AFC(u32, u32, u32*);
|
||||
extern void sub_8099690(u32);
|
||||
extern void sub_8031E10(void);
|
||||
extern void sub_803084C(void);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user