summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-11-10 21:25:00 -0500
committerGitHub <noreply@github.com>2025-11-10 18:25:00 -0800
commit23a1c940630435eaa0bbca45fb24156fc0d3db62 (patch)
treec2b05e860562425bd3147046e19bcf8130ad4625 /include
parenta02f72d8f3a87a2d2ddde062301d3639050e1e35 (diff)
Regalloc/debug/misc fixes (#2794)
* Fix "0" asserts * More debug and regalloc fixes * Fix PTMF syntax for compatibility with other compilers * Fix some fakematches, link more TUs for J/P
Diffstat (limited to 'include')
-rw-r--r--include/JSystem/J2DGraph/J2DTevs.h6
-rw-r--r--include/JSystem/JAudio2/JASHeapCtrl.h2
-rw-r--r--include/d/actor/d_a_e_pm.h2
-rw-r--r--include/d/actor/d_a_mg_fshop.h15
-rw-r--r--include/d/actor/d_a_npc.h2
-rw-r--r--include/d/actor/d_a_npc_the.h2
-rw-r--r--include/d/actor/d_a_passer_mng.h2
-rw-r--r--include/d/d_event_data.h1
-rw-r--r--include/d/d_event_manager.h1
-rw-r--r--include/d/d_kankyo.h5
-rw-r--r--include/f_op/f_op_actor.h4
11 files changed, 13 insertions, 29 deletions
diff --git a/include/JSystem/J2DGraph/J2DTevs.h b/include/JSystem/J2DGraph/J2DTevs.h
index 845b94e89d..5eb407379d 100644
--- a/include/JSystem/J2DGraph/J2DTevs.h
+++ b/include/JSystem/J2DGraph/J2DTevs.h
@@ -564,7 +564,7 @@ struct J2DColorChanInfo {
/* 0x0 */ u8 field_0x3;
};
-inline u8 J2DCalcColorChanID(const J2DColorChanInfo& info) { return info.field_0x1; }
+inline u16 J2DCalcColorChanID(u8 param_0) { return param_0; }
extern const J2DColorChanInfo j2dDefaultColorChanInfo;
/**
@@ -577,11 +577,11 @@ public:
setColorChanInfo(j2dDefaultColorChanInfo);
}
J2DColorChan(const J2DColorChanInfo& info) {
- mColorChan = J2DCalcColorChanID(info);
+ mColorChan = J2DCalcColorChanID(info.field_0x1);
}
void setColorChanInfo(const J2DColorChanInfo& info) {
- mColorChan = J2DCalcColorChanID(info);
+ mColorChan = J2DCalcColorChanID(info.field_0x1);
}
u16 getMatSrc() const { return mColorChan & 1; }
diff --git a/include/JSystem/JAudio2/JASHeapCtrl.h b/include/JSystem/JAudio2/JASHeapCtrl.h
index 754e65361c..c6cc34ae30 100644
--- a/include/JSystem/JAudio2/JASHeapCtrl.h
+++ b/include/JSystem/JAudio2/JASHeapCtrl.h
@@ -215,7 +215,7 @@ public:
chunk = chunk->getNextChunk();
}
- JUT_PANIC(362,"Cannnot free for JASMemChunkPool")
+ JUT_PANIC(362, "Cannnot free for JASMemChunkPool");
}
/* 0x18 */ MemoryChunk* field_0x18;
diff --git a/include/d/actor/d_a_e_pm.h b/include/d/actor/d_a_e_pm.h
index 1c5bdd89ce..f612a8c684 100644
--- a/include/d/actor/d_a_e_pm.h
+++ b/include/d/actor/d_a_e_pm.h
@@ -89,7 +89,7 @@ private:
/* 0x5BC */ u8 field_0x5bc[0x5DC - 0x5BC];
/* 0x5DC */ u8 mDoorAction;
/* 0x5E0 */ dPath* mpPath;
- /* 0x5E4 */ cXyz mPoint;
+ /* 0x5E4 */ Vec mPoint;
/* 0x5F0 */ u8 mPathIndex;
/* 0x5F4 */ int mPointIndex;
/* 0x5F8 */ u8 mBossHealth;
diff --git a/include/d/actor/d_a_mg_fshop.h b/include/d/actor/d_a_mg_fshop.h
index 17d4c93caa..a30b855958 100644
--- a/include/d/actor/d_a_mg_fshop.h
+++ b/include/d/actor/d_a_mg_fshop.h
@@ -10,9 +10,6 @@ class J3DModelData;
class dBgW;
struct fs_weed_s {
- /* 8086FED8 */ ~fs_weed_s();
- /* 8086FF38 */ fs_weed_s();
-
/* 0x00 */ cXyz field_0x00[15];
/* 0xB4 */ f32 field_0xb4;
/* 0xB8 */ f32 field_0xb8;
@@ -20,9 +17,6 @@ struct fs_weed_s {
};
struct fs_tsubo_s {
- /* 8086FE98 */ ~fs_tsubo_s();
- /* 8086FED4 */ fs_tsubo_s();
-
/* 0x00 */ cXyz field_0x00;
/* 0x0C */ u8 field_0x0c[0x14 - 0x0c];
/* 0x14 */ J3DModel* field_0x14;
@@ -34,9 +28,6 @@ struct fs_tsubo_s {
};
struct fs_rod_s {
- /* 8086FF84 */ ~fs_rod_s();
- /* 8086FFC0 */ fs_rod_s();
-
/* 0x00 */ cXyz field_0x00;
/* 0x0C */ u8 field_0x0C[0x14 - 0x0C];
/* 0x14 */ J3DModel* field_0x14;
@@ -49,9 +40,6 @@ struct fs_rod_s {
};
struct fs_lure_s {
- /* 8086FFDC */ ~fs_lure_s();
- /* 80870018 */ fs_lure_s();
-
/* 0x00 */ cXyz field_0x00;
/* 0x0C */ s16 field_0x0c;
/* 0x0E */ s16 field_0x0e;
@@ -72,9 +60,6 @@ struct fs_lure_s {
};
struct fs_koro2_s {
- /* 8086FD78 */ ~fs_koro2_s();
- /* 8086FDB4 */ fs_koro2_s();
-
/* 0x00 */ J3DModel* mpModel;
/* 0x04 */ Mtx field_0x04;
/* 0x34 */ s8 field_0x34;
diff --git a/include/d/actor/d_a_npc.h b/include/d/actor/d_a_npc.h
index 35fba79603..9799bb2fee 100644
--- a/include/d/actor/d_a_npc.h
+++ b/include/d/actor/d_a_npc.h
@@ -1112,7 +1112,7 @@ public:
struct daNpcF_anmPlayData {
u16 idx;
f32 morf;
- s32 numLoops;
+ int numLoops;
};
enum AnmFlags {
diff --git a/include/d/actor/d_a_npc_the.h b/include/d/actor/d_a_npc_the.h
index 437af22484..56aaf8d515 100644
--- a/include/d/actor/d_a_npc_the.h
+++ b/include/d/actor/d_a_npc_the.h
@@ -195,7 +195,7 @@ public:
return true;
}
- void doNormalAction() {
+ void doNormalAction(int) {
mOrderEvtNo = 0;
if (mpNextActionFn != NULL) {
if (mpNextActionFn == mpActionFn) {
diff --git a/include/d/actor/d_a_passer_mng.h b/include/d/actor/d_a_passer_mng.h
index 706fd41de4..c48a572384 100644
--- a/include/d/actor/d_a_passer_mng.h
+++ b/include/d/actor/d_a_passer_mng.h
@@ -244,7 +244,7 @@ public:
break;
default:
OS_REPORT("%s: Line.%d arg=%d\n", "d_a_passer_mng.cpp", 1049, param_1);
- JUT_PANIC(1050, 0);
+ JUT_ASSERT(1050, FALSE);
break;
}
return paramLow << 8;
diff --git a/include/d/d_event_data.h b/include/d/d_event_data.h
index f07a900705..17549363c1 100644
--- a/include/d/d_event_data.h
+++ b/include/d/d_event_data.h
@@ -273,6 +273,7 @@ public:
class dEvDtFlag_c {
public:
dEvDtFlag_c() {}
+ ~dEvDtFlag_c() {}
BOOL flagCheck(int flag);
BOOL flagSet(int flag);
BOOL flagMaxCheck(int flag);
diff --git a/include/d/d_event_manager.h b/include/d/d_event_manager.h
index 4bbff6879d..f9d70c1f10 100644
--- a/include/d/d_event_manager.h
+++ b/include/d/d_event_manager.h
@@ -10,6 +10,7 @@ class fopAc_ac_c;
class dEvent_exception_c {
public:
dEvent_exception_c() { mEventInfoIdx = -1; }
+ ~dEvent_exception_c() {}
void init();
int setStartDemo(int mapToolID);
const char* getEventName();
diff --git a/include/d/d_kankyo.h b/include/d/d_kankyo.h
index 6360e4330c..4f2666ecb1 100644
--- a/include/d/d_kankyo.h
+++ b/include/d/d_kankyo.h
@@ -831,10 +831,7 @@ public:
/* 0x2DB */ u8 door_light_influence_ratio;
/* 0x2DC */ s16 unk_light_influence_ratio;
/* 0x2DE */ u8 fish_pond_colreg_adjust_ON;
- /* 0x2E0 */ s16 fish_pond_colreg_c0_R;
- /* 0x2E2 */ s16 fish_pond_colreg_c0_G;
- /* 0x2E4 */ s16 fish_pond_colreg_c0_B;
- /* 0x2E6 */ u8 field_0x2E6[0x2E8 - 0x2E6];
+ /* 0x2E0 */ GXColorS10 fish_pond_colreg_c0;
/* 0x2E8 */ u8 water_mud_adjust_ON;
/* 0x2EA */ s16 field_0x2ea;
/* 0x2EC */ s16 field_0x2ec;
diff --git a/include/f_op/f_op_actor.h b/include/f_op/f_op_actor.h
index 8c567e5046..c0092cbda7 100644
--- a/include/f_op/f_op_actor.h
+++ b/include/f_op/f_op_actor.h
@@ -180,7 +180,7 @@ public:
void setArchiveName(char* name) { mArchiveName = name; }
u8 getMapToolId() { return mMapToolId; }
s16 getEventId() { return mEventId; }
- s16 getIdx() { return mIndex; }
+ s16 getIdx() { return (s8)mIndex; }
void setIdx(u8 i_idx) { mIndex = i_idx; }
char* getArchiveName() { return mArchiveName; }
BOOL chkCondition(u16 condition) { return (mCondition & condition) == condition; }
@@ -195,7 +195,7 @@ public:
/* 0x06 */ u16 mCondition;
/* 0x08 */ s16 mEventId;
/* 0x0A */ u8 mMapToolId;
- /* 0x0B */ s8 mIndex;
+ /* 0x0B */ u8 mIndex;
/* 0x0C */ char* mArchiveName;
/* 0x10 */ u8 field_0x10;
/* 0x14 */ void (*field_0x14)(void*);