[LEAK-INFORMED] fix clear_save_data_screen fakematch

This commit is contained in:
Kurausukun
2021-03-23 00:51:34 -04:00
parent 64e3ba9964
commit 3e9ccb4b77
+2 -18
View File
@@ -186,24 +186,8 @@ static void CB2_Sub_SaveClearScreen_Init(void)
static void SaveClearScreen_GpuInit(void)
{
DmaClearLarge16(3, (void *)VRAM, VRAM_SIZE, 0x1000);
#ifndef NONMATCHING
asm("":::"ip");
#endif
do
{
void * dest = (void *)OAM;
size_t size = OAM_SIZE;
DmaClear32(3, dest, size);
} while (0);
do
{
void * dest = (void *)PLTT;
size_t size = PLTT_SIZE;
DmaClear16(3, dest, size);
} while (0);
DmaClear32(3, (void *)OAM, OAM_SIZE);
DmaClear16(3, (void *)PLTT, PLTT_SIZE);
SetGpuReg(REG_OFFSET_DISPCNT, 0);
SetGpuReg(REG_OFFSET_BLDY, 0);