From 5b365a049b8bd0b996ee50f2caac0f8990832dbd Mon Sep 17 00:00:00 2001 From: dbalatoni13 <40299962+dbalatoni13@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:24:57 +0200 Subject: [PATCH] Fixed some includes --- include/game/msm.h | 1 + src/game/gamework.c | 4 ++++ src/game/hsfanim.c | 4 ++++ src/game/hsfex.c | 2 ++ src/game/minigame_seq.c | 1 + src/game/objsub.c | 1 + src/game/saveload.c | 2 ++ 7 files changed, 15 insertions(+) diff --git a/include/game/msm.h b/include/game/msm.h index 032b876c..2916a32e 100644 --- a/include/game/msm.h +++ b/include/game/msm.h @@ -165,6 +165,7 @@ s32 msmSysDelGroupAll(void); s32 msmSysGetSampSize(BOOL baseGrp); s32 msmSysDelGroupBase(s32 grpNum); s32 msmSysSetAux(s32 auxA, s32 auxB); +void msmSysRegularProc(void); s32 msmSeSetParam(int seNo, MSM_SEPARAM *param); int msmSePlay(int seId, MSM_SEPARAM *param); diff --git a/src/game/gamework.c b/src/game/gamework.c index 3c066ff6..fb9c6fda 100644 --- a/src/game/gamework.c +++ b/src/game/gamework.c @@ -4,6 +4,10 @@ #include "string.h" #include "version.h" +#ifndef __MWERKS__ +#include "game/pad.h" +#endif + SHARED_SYM s16 GwLanguage = 1; SHARED_SYM s16 GwLanguageSave = -1; diff --git a/src/game/hsfanim.c b/src/game/hsfanim.c index c24c6a98..a40b8c3b 100755 --- a/src/game/hsfanim.c +++ b/src/game/hsfanim.c @@ -9,6 +9,10 @@ #include "ext_math.h" #include "string.h" +#ifndef __MWERKS__ +#include "game/frand.h" +#endif + typedef struct { /* 0x00 */ s16 unk00; /* 0x02 */ s16 unk02; diff --git a/src/game/hsfex.c b/src/game/hsfex.c index 9455c65d..beac8a84 100644 --- a/src/game/hsfex.c +++ b/src/game/hsfex.c @@ -2,9 +2,11 @@ #include "game/hsfman.h" #include "game/hsfmotion.h" #include "game/disp.h" +#include "game/process.h" #include "ext_math.h" + #define DISP_HALF_W (HU_DISP_WIDTH/2.0f) #define DISP_HALF_H (HU_DISP_HEIGHT/2.0f) diff --git a/src/game/minigame_seq.c b/src/game/minigame_seq.c index e74486ee..c0dd07a7 100644 --- a/src/game/minigame_seq.c +++ b/src/game/minigame_seq.c @@ -1,4 +1,5 @@ #include "game/armem.h" +#include "game/audio.h" #include "game/disp.h" #include "game/gamework_data.h" #include "game/hsfman.h" diff --git a/src/game/objsub.c b/src/game/objsub.c index 6a402e3e..faf45970 100644 --- a/src/game/objsub.c +++ b/src/game/objsub.c @@ -1,6 +1,7 @@ #include "game/objsub.h" #include "game/data.h" #include "game/gamework_data.h" +#include "game/hsfman.h" #include "game/object.h" #include "game/pad.h" #include "game/window.h" diff --git a/src/game/saveload.c b/src/game/saveload.c index 4a8f1ea1..b267efc6 100644 --- a/src/game/saveload.c +++ b/src/game/saveload.c @@ -5,12 +5,14 @@ #include "game/flag.h" #include "game/gamework_data.h" #include "game/pad.h" +#include "game/process.h" #include "game/sprite.h" #include "game/window.h" #include "stddef.h" #include "string.h" + #if VERSION_ENG #define SAVE_WRITE_BEGIN _SetFlag(FLAG_ID_MAKE(3, 0)); #define SAVE_WRITE_END _ClearFlag(FLAG_ID_MAKE(3, 0));