forked from Sterophonick/omega-de-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGBApatch.h
More file actions
78 lines (64 loc) · 2.34 KB
/
Copy pathGBApatch.h
File metadata and controls
78 lines (64 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <gba_base.h>
#include "ff.h"
enum
{
EMax = 32
};
typedef struct SPatchInfo
{
u32 iOffset;
u32 iValue;
}SPatchInfo2;
extern FIL gfile;
extern void Sleep_ReplaceIRQ_start(void);
extern void Sleep_ReplaceIRQ_end(void);
extern void Return_address_L(void);
extern void Sleep_key(void);
extern void Reset_key(void);
//extern void Wakeup_key(void);
extern void RTS_ReplaceIRQ_start(void);
extern void RTS_ReplaceIRQ_end(void);
extern void RTS_Return_address_L(void);
extern void RTS_Sleep_key(void);
extern void RTS_Reset_key(void);
//extern void RTS_Wakeup_key(void);
extern void RTS_switch(void);
extern void Cheat_count(void);
extern void CHEAT(void);
extern void no_CHEAT_end(void);
extern void RTS_only_ReplaceIRQ_start(void);
extern void RTS_only_ReplaceIRQ_end(void);
extern void RTS_only_Return_address_L(void);
extern void RTS_only_SAVE_key(void);
extern void RTS_only_LOAD_key(void);
extern void Fire_Emblem_0378_patch_start(void);
extern void Fire_Emblem_0378_patch_end(void);
extern void Fire_Emblem_1692_patch_start(void);
extern void Fire_Emblem_1692_patch_end(void);
extern void Fire_Emblem_A_patch_start(void);
extern void Fire_Emblem_A_patch_end(void);
extern void Modify_address_A(void);
extern void Fire_Emblem_B_patch_start(void);
extern void Fire_Emblem_B_patch_end(void);
extern void Modify_address_B(void);
extern void Fire_Emblem_iQue_patch_start(void);
extern void Fire_Emblem_iQue_patch_end(void);
extern u32 gl_cheat_count;
void GBApatch_Cleanrom(u32* address,int filesize);
void GBApatch_PSRAM(u32* address,int filesize);
void GBApatch_Cleanrom_NOR(u32* address,u32 offset);
void GBApatch_NOR(u32* address,int filesize,u32 offset);
u32 Check_pat(TCHAR* gamefilename);
void Make_pat_file(char* filename);
u32 Check_RTS(TCHAR* gamefilename);
u8 Check_mde_file(TCHAR* gamefilename);
u8 Make_mde_file(TCHAR* gamefilename,u8 Save_num);
void Patch_SpecialROM_sheepmode(void);
u32 use_internal_engine(u8 gamecode[]);
u32 Check_cheat_file(TCHAR *gamefilename);
void SetTrimSize(u8* buffer,u32 romsize,u32 iSize,u32 mode,BYTE saveMODE);
u32 Find_spend_address_SpecialROM(u32* Data);
void Patch_SpecialROM_TrimSize(void);
u32 Check_game_RTS_FAT(TCHAR *filename,u32 game_save_rts);
void IWRAM_CODE PatchInternal(u32* Data,int iSize,u32 offset);
void Patch_SpecialROM_sleepmode(void);