sub_81219F0

This commit is contained in:
PikalaxALT 2017-10-12 23:05:36 -04:00
parent 52af334b89
commit aa3af7a3a7
3 changed files with 25 additions and 24 deletions

View File

@ -5,30 +5,6 @@
.text .text
thumb_func_start sub_81219F0
sub_81219F0: @ 81219F0
push {lr}
_081219F2:
bl sub_81215EC
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _08121A0C
ldr r0, =sub_8121C64
bl SetMainCallback2
b _08121A18
.pool
_08121A0C:
bl sub_81221AC
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _081219F2
_08121A18:
pop {r0}
bx r0
thumb_func_end sub_81219F0
thumb_func_start sub_8121A1C thumb_func_start sub_8121A1C
sub_8121A1C: @ 8121A1C sub_8121A1C: @ 8121A1C
push {r4-r7,lr} push {r4-r7,lr}

11
include/menu_helpers.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef GUARD_MENU_HELPERS_H
#define GUARD_MENU_HELPERS_H
// Exported type declarations
// Exported RAM declarations
// Exported ROM declarations
bool8 sub_81221AC(void);
#endif //GUARD_MENU_HELPERS_H

View File

@ -7,6 +7,7 @@
#include "unknown_task.h" #include "unknown_task.h"
#include "palette.h" #include "palette.h"
#include "menu.h" #include "menu.h"
#include "menu_helpers.h"
#include "text.h" #include "text.h"
#include "text_window.h" #include "text_window.h"
#include "gpu_regs.h" #include "gpu_regs.h"
@ -79,6 +80,7 @@ void sub_81219F0(void);
void sub_8121A1C(void); void sub_8121A1C(void);
void sub_8121B1C(void); void sub_8121B1C(void);
void sub_8121C50(void); void sub_8121C50(void);
void sub_8121C64(void);
void sub_8121C98(void); void sub_8121C98(void);
// .rodata // .rodata
@ -275,3 +277,15 @@ bool8 sub_81215EC(void)
gMain.state ++; gMain.state ++;
return FALSE; return FALSE;
} }
void sub_81219F0(void)
{
do
{
if (sub_81215EC() == TRUE)
{
SetMainCallback2(sub_8121C64);
break;
}
} while (sub_81221AC() != TRUE);
}