diff options
| author | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2016-12-02 21:30:18 +0100 | 
|---|---|---|
| committer | Marijn van der Werf <marijn.vanderwerf@gmail.com> | 2016-12-02 22:33:56 +0100 | 
| commit | d40539893b8abe0310ced859d648527bec15b52b (patch) | |
| tree | 3236c688770d750b44eabcf1f56501a8bad9421a /include | |
| parent | 45e09dba8be5fc3fb6c91a0712766c3f22dfebf2 (diff) | |
Pass struct array to PrintMenuItems
Diffstat (limited to 'include')
| -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); | 
