Implement & link m_birthday_ovl

This commit is contained in:
Cuyler36
2023-12-14 20:24:25 -05:00
parent b75c77d087
commit 0265169157
5 changed files with 328 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef M_BIRTHDAY_OVL_H
#define M_BIRTHDAY_OVL_H
#include "types.h"
#include "m_birthday_ovl_h.h"
#include "m_submenu_ovl.h"
#ifdef __cplusplus
extern "C" {
#endif
enum {
mBR_Ovl_IDX_MONTH,
mBR_Ovl_IDX_DAY,
mBR_Ovl_IDX_DATE_NUM,
mBR_Ovl_IDX_OK = mBR_Ovl_IDX_DATE_NUM,
mBR_Ovl_IDX_NUM
};
struct birthday_ovl_s {
u16 birthday_data[mBR_Ovl_IDX_DATE_NUM];
int idx;
};
extern void mBR_birthday_ovl_set_proc(Submenu* submenu);
extern void mBR_birthday_ovl_construct(Submenu* submenu);
extern void mBR_birthday_ovl_destruct(Submenu* submenu);
#ifdef __cplusplus
}
#endif
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef M_BIRTHDAY_OVL_H_H
#define M_BIRTHDAY_OVL_H_H
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct birthday_ovl_s mBR_Ovl_c;
#ifdef __cplusplus
}
#endif
#endif
+6 -1
View File
@@ -23,6 +23,7 @@
#include "m_timeIn_ovl_h.h"
#include "m_repay_ovl_h.h"
#include "m_notice_ovl_h.h"
#include "m_birthday_ovl_h.h"
#ifdef __cplusplus
extern "C" {
@@ -139,7 +140,11 @@ struct submenu_overlay_s {
/* 0x9B0 */ void* _9B0;
/* 0x9B4 */ mMP_Overlay_c* map_ovl;
/* 0x9B8 */ mNT_Ovl_c* notice_ovl;
/* 0x9BC */ u8 _9BC[0x9D0 - 0x9BC];
/* 0x9BC */ mBR_Ovl_c* birthday_ovl;
/* 0x9C0 */ void* _9C0;
/* 0x9C4 */ void* _9C4;
/* 0x9C8 */ void* _9C8;
/* 0x9CC */ void* _9CC;
/* 0x9D0 */ mMU_Overlay_c* music_ovl;
/* 0x9D4 */ mBN_Overlay_c* bank_ovl;
/* 0x9D8 */ void* _9D8;