diff options
author | camthesaxman <cameronghall@cox.net> | 2018-01-08 23:57:57 -0600 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2018-01-08 23:57:57 -0600 |
commit | e57ffa0c5e3096ef8e856bbc1f2c95787c5dd0e2 (patch) | |
tree | e5a8b93937b5c29237ec035c9e2b6d5fb8894215 /src/unused_81258BC.c | |
parent | 6d16dba22e9ea2b40bf684f7549b73a583d143f6 (diff) | |
parent | 85174ad6193d3d58b92deaaedf8c510440ed85ee (diff) |
Merge branch 'master' into menu_refactor
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..c25884053 --- /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) +{ + Menu_DrawStdWindowFrame(2, 14, 27, 19); + Menu_PrintText(gStringVar4, 3, 15); +}
\ No newline at end of file |