Skip to content

Get Rid of Battery Run Dry Error Message

voloved edited this page Dec 26, 2022 · 3 revisions

By devolov

Goal: Make battery run dry message not appear when starting the game.

In main_menu.c:

static void Task_MainMenuCheckBattery(u8 taskId)
{
    if (!gPaletteFade.active)
    {
        SetGpuReg(REG_OFFSET_WIN0H, 0);
        SetGpuReg(REG_OFFSET_WIN0V, 0);
        SetGpuReg(REG_OFFSET_WININ, WININ_WIN0_BG0 | WININ_WIN0_OBJ);
        SetGpuReg(REG_OFFSET_WINOUT, WINOUT_WIN01_BG0 | WINOUT_WIN01_OBJ | WINOUT_WIN01_CLR);
        SetGpuReg(REG_OFFSET_BLDCNT, BLDCNT_EFFECT_DARKEN | BLDCNT_TGT1_BG0);
        SetGpuReg(REG_OFFSET_BLDALPHA, 0);
        SetGpuReg(REG_OFFSET_BLDY, 7);
+       gTasks[taskId].func = Task_DisplayMainMenu;
-       if (!(RtcGetErrorStatus() & RTC_ERR_FLAG_MASK))
-       {
-           gTasks[taskId].func = Task_DisplayMainMenu;
-       }
-       else
-       {
-           gTasks[taskId].func = Task_WaitForBatteryDryErrorWindow;
-       }
    }
}
Clone this wiki locally