Added more headers

This commit is contained in:
2026-08-20 21:13:22 -05:00
committed by Timothy O'Barr
parent ae38960bdd
commit 92e49b0cd4
23 changed files with 133 additions and 32 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
#ifndef FSFONT_H #ifndef FSFONT_H
#define FSFONT_H #define FSFONT_H
signed int FsFontSetTexBuf(signed int id /* r2 */, void * pTexFileBuf /* r2 */); int FsFontSetTexBuf(signed int id /* r2 */, void * pTexFileBuf /* r2 */);
signed int FsFontSetScale(float x /* r29 */, float y /* r29 */); int FsFontSetScale(float x /* r29 */, float y /* r29 */);
int FsFontGetSize(float * pWidth /* r2 */, float * pHeight /* r2 */, u_short * str /* r2 */, u_short lastCode /* r2 */);
#endif // FSFONT_H #endif // FSFONT_H
+7
View File
@@ -0,0 +1,7 @@
#ifndef ANIM_H
#define ANIM_H
#include "common.h"
#include "Model.h"
void PlayMi3(MDLMNG * lpMdlMng /* r16 */);
#endif // ANIM_H
+8
View File
@@ -0,0 +1,8 @@
#ifndef BLAST_H
#define BLAST_H
#include "common.h"
void DrawPhantomFilter();
void UpdateBlast();
void InitBlast();
#endif // BLAST_H
+2
View File
@@ -3,5 +3,7 @@
int CsMngInit(); int CsMngInit();
int CsMngInitialize(); int CsMngInitialize();
int CsMngUpdate();
int CsMngDraw();
#endif // CLOTH_SIMULATOR_H #endif // CLOTH_SIMULATOR_H
+7
View File
@@ -0,0 +1,7 @@
#ifndef DIZZY_H
#define DIZZY_H
void DrawDizzyFilter();
void DrawDizzyMask();
void DrawGameOver();
void InitDizzyFilter();
#endif // DIZZY_H
+3 -3
View File
@@ -1,9 +1,9 @@
#ifndef FADE_H #ifndef FADE_H
#define FADE_H #define FADE_H
#include "common.h"
void InitFadeControl(); void InitFadeControl();
void SetFadeMng(unsigned char Type, signed int * Col, signed int Timer, void (* lpMidFunc)(), void (* lpEndFunc)(), signed int OutEnd, signed int StartIn); void SetFadeMng(unsigned char Type, signed int * Col, signed int Timer, void (* lpMidFunc)(), void (* lpEndFunc)(), signed int OutEnd, signed int StartIn);
void UpdateFadeMng();
#endif // FADE_H
#endif // FADE_H
+7
View File
@@ -10,5 +10,12 @@ void InitFileSystem();
void ReadRootPath(); void ReadRootPath();
unsigned char * GetRootPath(); unsigned char * GetRootPath();
void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size); void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size);
int FileCheckAsyncBusy(void);
void FileBackReadControl();
void FileReadControl(int bDraw);
int FileRead(char *filename /* r2 */, signed int size /* r2 */,
u_char **lpBuf /* r2 */,
u_char bSynch /* r2 */, int index /* r2 */,
int filetype /* r2 */, u_int align /* r2 */);
#endif // FILE_H #endif // FILE_H
+21 -4
View File
@@ -1,11 +1,11 @@
#include "Game.h" #include "Game.h"
#include "lib/FsFont.h" #include "Anim.h"
#include "sfx/Sfx.h" #include "Blast.h"
#include "sfx/SfxPostEffect.h"
#include "FrontEnd/FrontEnd_Card.h"
#include "Camera.h" #include "Camera.h"
#include "ClothSimulator.h"
#include "Damage.h" #include "Damage.h"
#include "Debug.h" #include "Debug.h"
#include "Dizzy.h"
#include "Drama.h" #include "Drama.h"
#include "Draw.h" #include "Draw.h"
#include "DrawOT.h" #include "DrawOT.h"
@@ -13,23 +13,40 @@
#include "Ene.h" #include "Ene.h"
#include "EtcEvent.h" #include "EtcEvent.h"
#include "Event.h" #include "Event.h"
#include "Fade.h"
#include "File.h"
#include "Filter.h" #include "Filter.h"
#include "Font.h" #include "Font.h"
#include "FrontEnd/FrontEnd_Card.h" #include "FrontEnd/FrontEnd_Card.h"
#include "Hmd.h" #include "Hmd.h"
#include "KuonMsg.h" #include "KuonMsg.h"
#include "Main.h" #include "Main.h"
#include "Map.h"
#include "Mirror.h"
#include "Model.h" #include "Model.h"
#include "MovePath.h" #include "MovePath.h"
#include "My.h"
#include "Object.h" #include "Object.h"
#include "Pad.h" #include "Pad.h"
#include "Peep.h"
#include "PointLight.h" #include "PointLight.h"
#include "Riddle.h"
#include "SandEffect.h"
#include "Scene.h"
#include "Script.h"
#include "Sound/Snd.h"
#include "Sound/SndSq.h"
#include "Spirit.h" #include "Spirit.h"
#include "Sprite.h" #include "Sprite.h"
#include "TexEffect.h" #include "TexEffect.h"
#include "TmpMenu.h"
#include "Unk.h" #include "Unk.h"
#include "common.h" #include "common.h"
#include "ee/eeregs.h" #include "ee/eeregs.h"
#include "lib/FsFont.h"
#include "menu/KuonMenu.h"
#include "menu/MenuTD.h"
#include "sfx/Sfx.h"
#include "sfx/SfxPostEffect.h" #include "sfx/SfxPostEffect.h"
void *lpGameTexList; void *lpGameTexList;
+1 -2
View File
@@ -14,6 +14,7 @@
#include "String.h" #include "String.h"
#include "TexEffect.h" #include "TexEffect.h"
#include "Title.h" #include "Title.h"
#include "TmpMenu.h"
#include "Unk.h" #include "Unk.h"
#include "common.h" #include "common.h"
#include "ee/eekernel.h" #include "ee/eekernel.h"
@@ -28,8 +29,6 @@ int GoToTitleFlag;
sceVu0FVECTOR V0; sceVu0FVECTOR V0;
GameState GameSt; GameState GameSt;
extern TMP_MENU_MNG_ST g_TmpMenuMng;
void SetGoToEndingFade(void) { void SetGoToEndingFade(void) {
SetFadeMng(1, (sceVu0IVECTOR){0}, 30, NULL, SetGoToEndingFlag, 0, 0); SetFadeMng(1, (sceVu0IVECTOR){0}, 30, NULL, SetGoToEndingFlag, 0, 0);
SND_RemoveSound(); SND_RemoveSound();
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef MODEL_H #ifndef MODEL_H
#define MODEL_H #define MODEL_H
#include "typedefs.h" #include "common.h"
typedef struct /* @anon17 */ typedef struct /* @anon17 */
{ {
+6
View File
@@ -0,0 +1,6 @@
#ifndef PEEP_H
#define PEEP_H
#include "common.h"
void DrawPeepHole();
#endif // PEEP_H
+8
View File
@@ -0,0 +1,8 @@
#ifndef RIDDLE_H
#define RIDDLE_H
#include "common.h"
void CheckFreeRiddleData();
void CheckRiddleFree();
void PlayRiddle();
#endif // RIDDLE_H
+7
View File
@@ -0,0 +1,7 @@
#ifndef SAND_EFFECT_H
#define SAND_EFFECT_H
#include "common.h"
void FreeSandEffect();
void InitSandEffect();
#endif // SAND_EFFECT_H
+3
View File
@@ -1,9 +1,12 @@
#ifndef SCENE_H #ifndef SCENE_H
#define SCENE_H #define SCENE_H
#include "common.h"
unsigned char GetLoadMovieId(); unsigned char GetLoadMovieId();
void ClearLoadMovieId(); void ClearLoadMovieId();
void FreeSceneData(); void FreeSceneData();
u_int CheckSceneLoad();
void SetLoadCamReserve(u_short CamId /* r2 */);
#endif // SCENE_H #endif // SCENE_H
+3 -3
View File
@@ -2,8 +2,8 @@
#define SCRIPT_H #define SCRIPT_H
void ClearEventFlag(); void ClearEventFlag();
void ScriptProc();
int CheckEventFlag(int EventFlag /* r2 */);
void SetEventFlag(int EventFlag /* r2 */);
#endif // SCRIPT_H #endif // SCRIPT_H
+1
View File
@@ -1,6 +1,7 @@
#ifndef SND_H #ifndef SND_H
#define SND_H #define SND_H
int SND_Update();
void SND_RemoveSound(); void SND_RemoveSound();
#endif //SND_H #endif //SND_H
+7
View File
@@ -0,0 +1,7 @@
#ifndef SND_SQ_H
#define SND_SQ_H
#include "common.h"
void SND_SqFadeStart(PORT port, FADE fade);
int SND_SqPlay(PORT port, int iBlockNum);
#endif // SND_SQ_H
+1 -1
View File
@@ -52,7 +52,7 @@ typedef struct /* @anon25 */
} TEX1; // offset 0xD8, size 0x8 } TEX1; // offset 0xD8, size 0x8
// * GetTexMngByName(void * lpTexList /* r18 */, char * texname /* r17 */); void ReadTexList(char * filename /* r2 */, void * * lplpBuf /* r2 */, signed int filetype /* r2 */, signed int index /* r2 */);
#endif // TEX_H #endif // TEX_H
+27
View File
@@ -0,0 +1,27 @@
#ifndef TMP_MENU_H
#define TMP_MENU_H
#include "common.h"
#include "Model.h"
typedef enum {
TMP_MENU__UDDRAW_ORDER__ON = 0,
TMP_MENU__UDDRAW_ORDER__OFF = 1,
TMP_MENU__UDDRAW_ORDER__OFF_FORCE = 2,
} _TMP_MENU__UDDRAW_ORDER_EN;
typedef struct _TMP_MENU_MNG_ST {
// Members
_MNG_STATE_ST mng_state; // offset 0x0, size 0x20
int DrawState; // offset 0x20, size 0x4
u_char** pTmpMenuFileBuf; // offset 0x24, size 0x4
float draw_up_rate; // offset 0x28, size 0x4
u_char dmy[12]; // offset 0x2C, size 0xC
} TMP_MENU_MNG_ST;
extern TMP_MENU_MNG_ST g_TmpMenuMng; // size: 0x38, address: 0xA00C70
int TmpMenuMng_Update(TMP_MENU_MNG_ST * pTmpMenuMng /* r2 */);
int TmpMenuMng_Draw(TMP_MENU_MNG_ST * pTmpMenuMng /* r16 */);
int TmpMenuMng_SetUDBlackDraw(TMP_MENU_MNG_ST * pTmpMenuMng /* r16 */, _TMP_MENU__UDDRAW_ORDER_EN order /* r17 */);
#endif // TMP_MENU_H
-15
View File
@@ -3,14 +3,6 @@
#include "Model.h" #include "Model.h"
typedef struct _TMP_MENU_MNG_ST {
// Members
_MNG_STATE_ST mng_state; // offset 0x0, size 0x20
int DrawState; // offset 0x20, size 0x4
u_char** pTmpMenuFileBuf; // offset 0x24, size 0x4
float draw_up_rate; // offset 0x28, size 0x4
u_char dmy[12]; // offset 0x2C, size 0xC
} TMP_MENU_MNG_ST;
extern struct /* @anon0 */ { extern struct /* @anon0 */ {
@@ -52,12 +44,6 @@ typedef enum /* @enum */ {
SND_SQSONG_FADE_STATE_QUO = 3, SND_SQSONG_FADE_STATE_QUO = 3,
} FADE; } FADE;
typedef enum {
TMP_MENU__UDDRAW_ORDER__ON = 0,
TMP_MENU__UDDRAW_ORDER__OFF = 1,
TMP_MENU__UDDRAW_ORDER__OFF_FORCE = 2,
} _TMP_MENU__UDDRAW_ORDER_EN;
// Members // Members
// total size: 0x1A0 // total size: 0x1A0
typedef struct /* @anon10 */ typedef struct /* @anon10 */
@@ -599,7 +585,6 @@ typedef struct /* @anon0 */
u_char a; // offset 0x3, size 0x1 u_char a; // offset 0x3, size 0x1
} COLOR; } COLOR;
extern TMP_MENU_MNG_ST g_TmpMenuMng; // size: 0x38, address: 0xA00C70
extern u_int * lpMdlPacketMem; // size: 0x4, address: 0x2578B0 extern u_int * lpMdlPacketMem; // size: 0x4, address: 0x2578B0
extern DRAW_MNG *lpDrawMng; extern DRAW_MNG *lpDrawMng;
+4
View File
@@ -21,4 +21,8 @@ enum _KUON_MENU__RELOAD_FLAG_EN {
KUON_MENU_RELOAD_FLAG_TITLE = -32768, KUON_MENU_RELOAD_FLAG_TITLE = -32768,
}; };
int KnMenuMng_Update(int call_check /* r16 */);
int KnMenuMng_Draw();
int KnMenuMng_Crean();
#endif // KUONMENU_H #endif // KUONMENU_H
+4 -1
View File
@@ -3,6 +3,9 @@
#include "typedefs.h" #include "typedefs.h"
int Menu_TD_IsPlay(void); int Menu_TD_Update();
int Menu_TD_IsPlay();
int Menu_TD_Draw();
int Menu_TD_Init();
#endif // MENUTD_H #endif // MENUTD_H
+2
View File
@@ -2,5 +2,7 @@
#define SFX_H #define SFX_H
void SFX_Action(float sec_ /* r20 */); void SFX_Action(float sec_ /* r20 */);
void SFX_Draw();
void SFX_DrawAfterOT();
#endif // SFX_H #endif // SFX_H