mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
sub_81219F0
This commit is contained in:
parent
52af334b89
commit
aa3af7a3a7
24
asm/mail.s
24
asm/mail.s
@ -5,30 +5,6 @@
|
||||
|
||||
.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
|
||||
sub_8121A1C: @ 8121A1C
|
||||
push {r4-r7,lr}
|
||||
|
11
include/menu_helpers.h
Normal file
11
include/menu_helpers.h
Normal 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
|
14
src/mail.c
14
src/mail.c
@ -7,6 +7,7 @@
|
||||
#include "unknown_task.h"
|
||||
#include "palette.h"
|
||||
#include "menu.h"
|
||||
#include "menu_helpers.h"
|
||||
#include "text.h"
|
||||
#include "text_window.h"
|
||||
#include "gpu_regs.h"
|
||||
@ -79,6 +80,7 @@ void sub_81219F0(void);
|
||||
void sub_8121A1C(void);
|
||||
void sub_8121B1C(void);
|
||||
void sub_8121C50(void);
|
||||
void sub_8121C64(void);
|
||||
void sub_8121C98(void);
|
||||
|
||||
// .rodata
|
||||
@ -275,3 +277,15 @@ bool8 sub_81215EC(void)
|
||||
gMain.state ++;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void sub_81219F0(void)
|
||||
{
|
||||
do
|
||||
{
|
||||
if (sub_81215EC() == TRUE)
|
||||
{
|
||||
SetMainCallback2(sub_8121C64);
|
||||
break;
|
||||
}
|
||||
} while (sub_81221AC() != TRUE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user