fixed some stuff

This commit is contained in:
jiangzhengwenjz
2019-07-02 05:28:14 +08:00
parent b566ae26de
commit 402e8a4fc0
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ static /*IWRAM_DATA*/ struct {
/* 0x0C */ u32 value;
} gDma3Requests[128];
static bool8 gDma3ManagerLocked;
static volatile bool8 gDma3ManagerLocked;
static u8 gDma3RequestCursor;
void ClearDma3Requests(void)
+1 -1
View File
@@ -13,7 +13,7 @@ void sub_8079B7C(void)
u16 imeBackup = REG_IME;
REG_IME = 0;
RegisterRamReset(0x00000001);
RegisterRamReset(RESET_EWRAM);
ClearGpuRegBits(REG_OFFSET_DISPCNT, DISPCNT_FORCED_BLANK);
REG_IME = imeBackup;
gMain.inBattle = FALSE;
-1
View File
@@ -50,7 +50,6 @@ static int getline(char ** lineptr, size_t * n, FILE * stream) {
return i;
}
static void getIncbinsFromFile(hunk_t ** hunks, size_t * num, size_t * maxnum, const char * fname, char ** strbuf, size_t * buffersize) {
// Recursively find incbinned segments and encode them as hunks.
FILE * file = fopen(fname, "r");