Implement & link save_menu.c

This commit is contained in:
Cuyler36
2023-05-30 03:55:27 -04:00
parent bf9e2a3be4
commit f97150bdec
10 changed files with 338 additions and 5 deletions
+24 -4
View File
@@ -9,16 +9,36 @@
extern "C" {
#endif
enum save_mode {
SAVE_MODE_BEGIN,
SAVE_MODE_FLASHROM = SAVE_MODE_BEGIN,
SAVE_MODE_CPAK,
SAVE_MODE_NUM
};
enum save_error {
SAVE_ERROR_NONE,
SAVE_ERROR_FLASHROM,
SAVE_ERROR_CPAK,
SAVE_ERROR_EXIT,
SAVE_ERROR_NUM
};
/* sizeof(struct game_save_menu_s) == 0x0228 */
typedef struct game_save_menu_s {
/* 0x0000 */ GAME game;
/* 0x00E0 */ View view;
// TODO: finish this
/* 0x0200 */ u8 _temp[0x28];
/* 0x0200 */ u32 frame;
/* 0x0204 */ int mode;
/* 0x0208 */ int error;
/* 0x020C */ int cursor_col[SAVE_MODE_NUM][3];
} GAME_SAVE_MENU;
extern void save_menu_init(GAME_SAVE_MENU* save_menu);
extern void save_menu_cleanup(GAME_SAVE_MENU* save_menu);
extern void save_menu_init(GAME* game);
extern void save_menu_cleanup(GAME* game);
#ifdef __cplusplus
}