mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-29 14:53:55 +01:00
sub_818E004; sanity
This commit is contained in:
parent
28d0fa33fe
commit
9b00767b55
@ -5,28 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_818E004
|
||||
sub_818E004: @ 818E004
|
||||
ldr r2, =gUnknown_0203CD68
|
||||
ldr r0, =gSaveBlock1Ptr
|
||||
ldr r0, [r0]
|
||||
ldr r1, =0x00003b58
|
||||
adds r0, r1
|
||||
str r0, [r2]
|
||||
movs r1, 0
|
||||
strb r1, [r0]
|
||||
ldr r0, [r2]
|
||||
strb r1, [r0, 0x1]
|
||||
ldr r0, [r2]
|
||||
adds r0, 0x2A
|
||||
strb r1, [r0]
|
||||
ldr r1, [r2]
|
||||
ldr r0, =0x0000ffff
|
||||
strh r0, [r1, 0x16]
|
||||
bx lr
|
||||
.pool
|
||||
thumb_func_end sub_818E004
|
||||
|
||||
thumb_func_start sub_818E038
|
||||
sub_818E038: @ 818E038
|
||||
push {lr}
|
||||
|
@ -189,7 +189,7 @@ bool8 sub_818DC60(void)
|
||||
gUnknown_0203CD64 = &gSaveBlock1Ptr->lilycoveLady.favour;
|
||||
if (gUnknown_0203CD64->unk_004[0] != EOS)
|
||||
{
|
||||
StringCopy7(gStringVar3, gSaveBlock1Ptr->lilycoveLady.favour.unk_004);
|
||||
StringCopy7(gStringVar3, gUnknown_0203CD64->unk_004);
|
||||
ConvertInternationalString(gStringVar3, gUnknown_0203CD64->language);
|
||||
return TRUE;
|
||||
}
|
||||
@ -216,7 +216,7 @@ void sub_818DCF4(const u8 *src, u8 *dest)
|
||||
void sub_818DD14(void)
|
||||
{
|
||||
gUnknown_0203CD64 = &gSaveBlock1Ptr->lilycoveLady.favour;
|
||||
sub_818DCF4(gSaveBlock1Ptr->lilycoveLady.favour.unk_004, gStringVar3);
|
||||
sub_818DCF4(gUnknown_0203CD64->unk_004, gStringVar3);
|
||||
ConvertInternationalString(gStringVar3, gUnknown_0203CD64->language);
|
||||
}
|
||||
|
||||
@ -343,3 +343,12 @@ void SetLilycoveQuizLady(void)
|
||||
gUnknown_0203CD68->language = gGameLanguage;
|
||||
sub_818DF00();
|
||||
}
|
||||
|
||||
void sub_818E004(void)
|
||||
{
|
||||
gUnknown_0203CD68 = &gSaveBlock1Ptr->lilycoveLady.quiz;
|
||||
gUnknown_0203CD68->id = LILYCOVE_LADY_QUIZ;
|
||||
gUnknown_0203CD68->unk_001 = 0;
|
||||
gUnknown_0203CD68->unk_02a = 0;
|
||||
gUnknown_0203CD68->unk_016 = -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user