Implement & link m_warning_ovl.c

This commit is contained in:
Cuyler36
2023-11-13 04:16:01 -05:00
parent 76d1daf0f1
commit 8b7b72be64
5 changed files with 562 additions and 1 deletions
+15 -1
View File
@@ -11,11 +11,22 @@
#include "m_map_ovl_h.h"
#include "m_bank_ovl_h.h"
#include "m_music_ovl_h.h"
#include "m_warning_ovl_h.h"
#ifdef __cplusplus
extern "C" {
#endif
enum {
mSM_OVL_PROC_MOVE,
mSM_OVL_PROC_PLAY,
mSM_OVL_PROC_WAIT,
mSM_OVL_PROC_3,
mSM_OVL_PROC_END,
mSM_OVL_PROC_NUM
};
// TODO: fill this out
typedef struct submenu_segment_s {
u8 _00[0x54];
@@ -98,7 +109,10 @@ struct submenu_overlay_s {
/* 0x964 */ mSM_SETUP_VIEW_PROC setup_view_proc;
/* 0x968 */ void* unused_func_968;
/* 0x96C */ mSM_CHANGE_VIEW_PROC change_view_proc;
/* 0x970 */ u8 _940[0x9B4 - 0x970];
/* 0x970 */ u8 _970[0x9A8 - 0x970];
/* 0x9A8 */ mWR_Ovl_c* warning_ovl;
/* 0x9AC */ void* _9AC;
/* 0x9B0 */ void* _9B0;
/* 0x9B4 */ mMP_Overlay_c* map_ovl;
/* 0x9B8 */ u8 _9B8[0x9D0 - 0x9B8];
/* 0x9D0 */ mMU_Overlay_c* music_ovl;
+34
View File
@@ -0,0 +1,34 @@
#ifndef M_WARNING_OVL_H
#define M_WARNING_OVL_H
#include "types.h"
#include "m_warning_ovl_h.h"
#include "m_submenu_ovl.h"
#ifdef __cplusplus
extern "C" {
#endif
enum {
mWR_STATE_OUT,
mWR_STATE_IN,
mWR_STATE_NUM
};
struct warning_ovl_s {
u8 selected;
u8 state;
f32 scale;
};
extern void mWR_warning_ovl_set_proc(Submenu* submenu);
extern void mWR_warning_ovl_init(Submenu* submenu);
extern void mWR_warning_ovl_construct(Submenu* submenu);
extern void mWR_warning_ovl_destruct(Submenu* submenu);
#ifdef __cplusplus
}
#endif
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef M_WARNING_OVL_H_H
#define M_WARNING_OVL_H_H
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct warning_ovl_s mWR_Ovl_c;
#ifdef __cplusplus
}
#endif
#endif