mirror of https://github.com/zeldaret/tmc.git
				
				
				
			
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
| #ifndef FILESELECT_H
 | |
| #define FILESELECT_H
 | |
| 
 | |
| #include "sound.h"
 | |
| #include "global.h"
 | |
| #include "save.h"
 | |
| 
 | |
| typedef struct {
 | |
|     /*0x00*/ u8 unk_0x0;
 | |
|     /*0x02*/ u8 filler0[0x4];
 | |
|     /*0x06*/ u8 state;
 | |
|     /*0x07*/ u8 subState;
 | |
|     /*0x08*/ u16 timer;
 | |
|     /*0x0a*/ u8 fillerA[0x5];
 | |
|     /*0x10*/ s16 unk_0x10;
 | |
|     /*0x12*/ u16 unk_0x12;
 | |
|     /*0x14*/ u8 fillerB[0xC];
 | |
|     /*0x20*/ u8 unk_0x20;
 | |
|     /*0x21*/ u8 fillerC[0xF];
 | |
| } ChooseFileState;
 | |
| static_assert(sizeof(ChooseFileState) == 0x30);
 | |
| 
 | |
| // TODO: This occupies the same memory region as gMenu
 | |
| extern ChooseFileState gChooseFileState;
 | |
| 
 | |
| typedef struct {
 | |
|     u8 filler0[0x1];
 | |
|     u8 unk1;
 | |
|     u8 charColor;
 | |
|     u8 bgColor;
 | |
|     u16 unk4;
 | |
|     u16 unk6;
 | |
|     u8* unk8;
 | |
| } struct_02036540;
 | |
| 
 | |
| extern struct_020227E8 gUnk_020227E8[];
 | |
| 
 | |
| typedef struct {
 | |
|     /*0x00*/ u8 isTransitioning;
 | |
|     /*0x01*/ u8 unk1;
 | |
|     /*0x02*/ u8 unk2;
 | |
|     /*0x03*/ u8 unk3;
 | |
|     /*0x04*/ u8 unk4;
 | |
|     /*0x05*/ u8 unk5;
 | |
|     /*0x06*/ u8 unk6;
 | |
|     /*0x07*/ u8 unk7;
 | |
|     /*0x08*/ s8 saveStatus[3];
 | |
|     /*0x0b*/ SaveFile saves[3];
 | |
| } struct_02019EE0;
 | |
| extern struct_02019EE0 gMapDataBottomSpecial;
 | |
| // TODO size: 0x8000 from ClearTilemaps?
 | |
| 
 | |
| extern void sub_08056FEC(u32, struct_020227E8*);
 | |
| extern void sub_0805F46C(u32, Font*);
 | |
| extern void RecoverUI(u32 bottomPt, u32 topPt);
 | |
| extern void ClearTilemaps(void);
 | |
| extern void sub_0805194C(u32);
 | |
| extern struct_02036540* sub_0805F2C8(void);
 | |
| extern void sub_0805F7DC(u32, struct_02036540*);
 | |
| extern void sub_0805F300(struct_02036540*);
 | |
| extern void sub_08050A64(u32);
 | |
| extern void sub_08050AFC(u32);
 | |
| extern void sub_08050384();
 | |
| extern void CreateDialogBox(u32, u32);
 | |
| 
 | |
| extern const Font gUnk_080FC844;
 | |
| extern const u16 gUnk_080FC85C[][3];
 | |
| extern void (*const gUnk_080FC908[])(void);
 | |
| extern const u8 gGlobalGfxAndPalettes[];
 | |
| extern void (*const gUnk_080FC93C[])();
 | |
| extern u32 gUsedPalettes;
 | |
| extern u8 gTextGfxBuffer[];
 | |
| extern u8 gUnk_02022030;
 | |
| 
 | |
| #endif |