diff options
author | YamaArashi <YamaArashi@users.noreply.github.com> | 2016-12-02 14:56:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 14:56:56 -0800 |
commit | 14d9b188cd8f16b4403280ae24fc7b8c059d0fc1 (patch) | |
tree | df08926aef4bfc16f0b3f1ed16b1bc656d908e70 /include/menu.h | |
parent | 506587c676fb18a289d19561ca0de67004c7656e (diff) | |
parent | 4d2d30beb113f5f987c73cdf1b818e0079222093 (diff) |
Merge pull request #116 from marijnvdwerf/clean/warnings-0
Fix various warnings
Diffstat (limited to 'include/menu.h')
-rw-r--r-- | include/menu.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/menu.h b/include/menu.h index 7dfe418a9..6805591df 100644 --- a/include/menu.h +++ b/include/menu.h @@ -3,6 +3,12 @@ #include "text.h" +struct MenuAction +{ + u8 *text; + u8 (*func)(void); +}; + void InitMenuWindow(const struct WindowConfig *); void MultistepInitMenuWindowBegin(struct WindowConfig *); bool32 MultistepInitMenuWindowContinue(void); @@ -36,8 +42,8 @@ u8 MoveMenuCursor4(s8); void sub_807274C(u8, u8, u8, u8, u8 * const [][2], u8, u32); s8 sub_80727CC(void); u8 sub_807288C(u8); -void PrintMenuItems(u8, u8, u8, u8 * const [][2]); -void PrintMenuItemsReordered(u8, u8, u8, u8 * const [][2], u8*); +void PrintMenuItems(u8, u8, u8, const struct MenuAction[]); +void PrintMenuItemsReordered(u8, u8, u8, const struct MenuAction[], u8*); void InitYesNoMenu(u8, u8, u8); void DisplayYesNoMenu(u8, u8, u32); s8 ProcessMenuInputNoWrap_(void); |