diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-09-01 18:05:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 18:05:30 -0700 |
commit | db05ce306fa55c9d64b7123e47cf2b66416afe40 (patch) | |
tree | fa0258192daa7a0319a425a688e1c56a8ed67ab2 /src/rescue_password_menu_1.c | |
parent | 459171cf48157699e044b66b8274e500ecd5fe0d (diff) |
More PMD grind (#50)
* more sese grind
* match sub_802ABF8
* some more work
Diffstat (limited to 'src/rescue_password_menu_1.c')
-rw-r--r-- | src/rescue_password_menu_1.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/rescue_password_menu_1.c b/src/rescue_password_menu_1.c new file mode 100644 index 0000000..1058589 --- /dev/null +++ b/src/rescue_password_menu_1.c @@ -0,0 +1,33 @@ +#include "global.h" +#include "memory.h" +#include "input.h" +#include "item.h" +#include "sub_8095228.h" +#include "text.h" +#include "rescue_password_menu.h" + +extern struct RescuePasswordMenu *gRescuePasswordMenu; +extern void AddSprite(struct unkSprite *, u32, u32, u32); +extern void xxx_draw_string_80144C4(void); + +void sub_80391F8(void) +{ + struct unkSprite *iVar2; + u32 temp; + u32 temp2; + + iVar2 = &gRescuePasswordMenu->unk208; + + temp = (iVar2->unk20A & 0xfe00); + iVar2->unk20A = temp | 0x70; + + temp2 = 0x700; + temp = (iVar2->unk20E & 0xf); + iVar2->unk20E = temp | temp2; + + if ((gRescuePasswordMenu->unk210 & 8) != 0) { + AddSprite(iVar2,0x100,0,0); + } + xxx_draw_string_80144C4(); + gRescuePasswordMenu->unk210 += 1; +} |