diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 22:35:29 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-08 22:35:29 -0500 |
commit | f6960086684ad3d73b867ed5a357fc59d1650929 (patch) | |
tree | e2685768a6db4b36c4eb9acb65147f8a17c55b19 /src/unused_81258BC.c | |
parent | dcf12f9ecdbaab26afb8899eaa05f4cab09a5f82 (diff) | |
parent | 85174ad6193d3d58b92deaaedf8c510440ed85ee (diff) |
Merge branch 'master' of https://github.com/pret/pokeruby into assert
Diffstat (limited to 'src/unused_81258BC.c')
-rw-r--r-- | src/unused_81258BC.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/unused_81258BC.c b/src/unused_81258BC.c new file mode 100644 index 000000000..c509ea4c9 --- /dev/null +++ b/src/unused_81258BC.c @@ -0,0 +1,36 @@ +#include "constants/songs.h" +#include "global.h" +#include "menu.h" +#include "mystery_event_script.h" +#include "sound.h" +#include "text.h" + +void sub_812AF10(void); + +bool8 unref_sub_812AECC(u8 *script) +{ + u8 result = RunMysteryEventScript(script); + switch (result) + { + case 0: + return FALSE; + case 1: + PlaySE(SE_BOO); + return TRUE; + case 2: + sub_812AF10(); + return FALSE; + case 3: + PlaySE(SE_BOO); + sub_812AF10(); + return TRUE; + default: + return FALSE; + } +} + +void sub_812AF10(void) +{ + MenuDrawTextWindow(2, 14, 27, 19); + MenuPrint(gStringVar4, 3, 15); +}
\ No newline at end of file |