Implement

This commit is contained in:
Cuyler36
2023-08-07 21:45:53 -04:00
parent 41f7e2bc62
commit 0f74b4c6e0
10 changed files with 348 additions and 10 deletions
+26 -9
View File
@@ -33,11 +33,8 @@ struct game_s {
/* 0x00A8 */ MCON mcon;
};
extern void game_ct(GAME*, void (*)(GAME*), GRAPH*);
extern void game_dt(GAME* game);
extern void game_main(GAME* game);
extern int game_is_doing(GAME* game);
extern void (*game_get_next_game_init(GAME* game))(GAME*);
#define GAME_HYRAL_SIZE (0x100000)
#define GAME_FRAME (1)
#define GAME_NEXT_GAME(game, init_name, class_name) \
do { \
@@ -46,6 +43,13 @@ do { \
g->next_game_class_size = sizeof(GAME_##class_name); \
} while (0)
#define GAME_NEXT_GAME_NULL(game) \
do { \
GAME* _game = (game); \
_game->next_game_init = NULL; \
_game->next_game_class_size = 0; \
} while (0)
#define GAME_GOTO_NEXT(game, init_name, class_name) \
do { \
GAME* t_game = (game); \
@@ -53,11 +57,24 @@ do { \
GAME_NEXT_GAME(t_game, init_name, class_name); \
} while (0)
extern void SetGameFrame(int frame);
extern void game_get_controller(GAME* game);
extern void game_debug_draw_last(GAME* game, GRAPH* graph);
extern void game_debug_draw_last(GAME* this, GRAPH* graph);
extern void game_draw_last(GRAPH* graph);
extern void game_get_controller(GAME* this);
extern void SetGameFrame(int frame);
extern void game_main(GAME* this);
extern void game_resize_hyral(GAME* this, int size);
extern void game_ct(GAME* this, void (*init)(GAME*), GRAPH* graph);
extern void game_dt(GAME* this);
extern void (*game_get_next_game_init(GAME* this))(GAME*);
#ifndef MUST_MATCH
extern size_t game_get_next_game_class_size(GAME* this);
#endif
extern int game_is_doing(GAME* this);
extern int game_getFreeBytes(GAME* this);
extern void game_goto_next_game_play(GAME* this);
#ifndef MUST_MATCH
extern void game_goto_next_game_famicom_emu(GAME* this);
#endif
extern GAME* gamePT;
+1
View File
@@ -71,6 +71,7 @@ extern void* JC_JFWSystem_getSystemHeap();
extern void* JC_JFWDisplay_getManager();
extern void JC_JFWDisplay_startFadeOut(void* manager, int len);
extern void JC_JFWDisplay_startFadeIn(void* manager, int len);
extern void JC_JFWDisplay_setFrameRate(void* manager, u16 framerate);
extern void JC_JKRAramHeap_dump(void* heap);
extern void* JC_JKRAram_getAramHeap();
+24
View File
@@ -0,0 +1,24 @@
#ifndef M_MUSIC_OVL_H
#define M_MUSIC_OVL_H
#include "types.h"
#include "m_music_ovl_h.h"
#include "m_submenu_ovl.h"
#ifdef __cplusplus
extern "C" {
#endif
struct music_ovl_s {
};
extern void mMU_music_ovl_set_proc(Submenu* submenu);
extern void mMU_music_ovl_construct(Submenu* submenu);
extern void mMU_music_ovl_destruct(Submenu* submenu);
#ifdef __cplusplus
}
#endif
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef M_MUSIC_OVL_H_H
#define M_MUSIC_OVL_H_H
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct music_ovl_s mMU_Overlay_c;
#ifdef __cplusplus
}
#endif
#endif
+3 -1
View File
@@ -10,6 +10,7 @@
#include "PreRender.h"
#include "m_map_ovl_h.h"
#include "m_bank_ovl_h.h"
#include "m_music_ovl_h.h"
#ifdef __cplusplus
extern "C" {
@@ -99,7 +100,8 @@ struct submenu_overlay_s {
/* 0x96C */ mSM_CHANGE_VIEW_PROC change_view_proc;
/* 0x970 */ u8 _940[0x9B4 - 0x970];
/* 0x9B4 */ mMP_Overlay_c* map_ovl;
/* 0x9B8 */ u8 _9B8[0x9D4 - 0x9B8];
/* 0x9B8 */ u8 _9B8[0x9D0 - 0x9B8];
/* 0x9D0 */ mMU_Overlay_c* music_ovl;
/* 0x9D4 */ mBN_Overlay_c* bank_ovl;
/* 0x9D8 */ u8 _9D8[0xA00 - 0x9D8];
/* 0xA00 */ Mtx* projection_matrix;
+6
View File
@@ -79,6 +79,12 @@ typedef u32 unknown;
#define FORCESTRIP
#endif
#ifdef MUST_MATCH
#define MATCH_FORCESTRIP FORCESTRIP
#else
#define MATCH_FORCESTRIP
#endif
#if !defined(__INTELLISENSE__) && defined(MUST_MATCH)
#define BSS_ORDER_GROUP_START FORCESTRIP ORDER_BSS_DATA {
#define BSS_ORDER_GROUP_END }