Skip to content

Commit 21b386c

Browse files
committed
Add a precompiled header for RELs
1 parent aec2c09 commit 21b386c

File tree

992 files changed

+2567
-4206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

992 files changed

+2567
-4206
lines changed

.clangd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ Diagnostics:
1414
- "bound_member_function"
1515
- "typecheck_subscript_value"
1616
- "unknown_typename"
17+
---
18+
If:
19+
PathMatch: .*\.pch
20+
CompileFlags:
21+
Add: ["--language=c++", "--std=c++98"]

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"files.trimFinalNewlines": true,
1717
"files.associations": {
1818
"*.inc": "cpp",
19+
"*.pch": "cpp",
20+
"*.pch++": "cpp",
1921
".clangd": "yaml",
2022
},
2123
// Disable C/C++ IntelliSense, use clangd instead

configure.py

Lines changed: 137 additions & 115 deletions
Large diffs are not rendered by default.

include/JSystem/JAudio2/JASSimpleWaveBank.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
struct JASSimpleWaveBank : JASWaveBank, JASWaveArc {
99
struct TWaveHandle : JASWaveHandle {
10-
/* 80298D84 */ ~TWaveHandle() {}
10+
/* 80298D84 */ ~TWaveHandle();
1111
/* 80298F38 */ int getWavePtr() const;
1212
/* 80298F5C */ TWaveHandle();
1313
/* 80298F90 */ const JASWaveInfo* getWaveInfo() const;

include/SSystem/SComponent/c_xyz.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct cXyz : Vec {
100100
void zero() { set(0.0f, 0.0f, 0.0f); }
101101

102102
f32 getSquareMag() const { return VECSquareMag(this); }
103-
f32 getSquareDistance(const Vec& other) const { return VECSquareDistance(this, &other); }
103+
f32 getSquareDistance(const Vec& other) const { return PSVECSquareDistance(this, &other); }
104104

105105
static f32 getNearZeroValue() { return 8e-11f; }
106106

include/Z2AudioLib/Z2Calc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
#define Z2CALC_H
33

44
#include "dolphin/types.h"
5+
#include "m_Do/m_Do_lib.h"
56

67
namespace Z2Calc {
8+
// hack for f_op_actor, having this present breaks its weak func ordering
9+
static const Vec cNullVec = {0.0f, 0.0f, 0.0f};
10+
711
enum CurveSign {
812
CURVE_SIGN_0 = 0,
913
CURVE_SIGN_1 = 1,

include/d/actor/d_a_b_yo.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,4 @@ class daB_YO_c : public fopEn_enemy_c {
231231

232232
STATIC_ASSERT(sizeof(daB_YO_c) == 0x1B88);
233233

234-
class daB_YO_HIO_c {
235-
public:
236-
/* 8062F46C */ daB_YO_HIO_c();
237-
/* 806395E4 */ virtual ~daB_YO_HIO_c() {}
238-
239-
/* 0x04 */ s8 field_0x4;
240-
/* 0x08 */ f32 mScale[8];
241-
/* 0x28 */ f32 mFreezardNum;
242-
/* 0x2C */ f32 mMaxFallSpeed;
243-
/* 0x30 */ f32 mReboundSpeedRatio;
244-
/* 0x34 */ f32 mChaseSpeed;
245-
/* 0x38 */ f32 mReboundSpeedMax;
246-
/* 0x3C */ bool field_0x3c;
247-
/* 0x40 */ f32 mGatherTimer;
248-
/* 0x44 */ f32 mAttackTimer;
249-
/* 0x48 */ f32 mFreezardRadius;
250-
/* 0x4C */ f32 field_0x4c;
251-
/* 0x50 */ f32 field_0x50;
252-
/* 0x54 */ bool field_0x54;
253-
/* 0x58 */ f32 field_0x58;
254-
};
255-
256-
STATIC_ASSERT(sizeof(daB_YO_HIO_c) == 0x5C);
257-
258234
#endif /* D_A_B_YO_H */

include/d/actor/d_a_b_yo_ice.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,4 @@ class daB_YOI_c : public fopEn_enemy_c {
102102

103103
STATIC_ASSERT(sizeof(daB_YOI_c) == 0xB3C);
104104

105-
class daB_YOI_HIO_c {
106-
public:
107-
/* 8063A14C */ daB_YOI_HIO_c();
108-
/* 8063DBD0 */ virtual ~daB_YOI_HIO_c() {}
109-
110-
/* 0x4 */ s8 field_0x4;
111-
/* 0x8 */ f32 mScaleY;
112-
/* 0xC */ f32 mScaleXZ;
113-
};
114-
115-
STATIC_ASSERT(sizeof(daB_YOI_HIO_c) == 0x10);
116-
117105
#endif /* D_A_B_YO_ICE_H */

include/d/actor/d_a_e_bi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ class daE_BI_HIO_c : public JORReflexible {
7474
/* 8068A5EC */ daE_BI_HIO_c();
7575
/* 8068D2DC */ virtual ~daE_BI_HIO_c() {}
7676

77+
#if DEBUG
78+
void genMessage(JORMContext*);
79+
#endif
80+
7781
/* 爆弾虫 - Bomb Bug */
7882
/* 0x04 */ s8 field_0x4;
7983
/* 0x08 */ f32 basic_size; // 基本サイズ - Basic Size

include/d/actor/d_a_npc_fguard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class daNpcFgd_c : public daNpcCd2_c {
1818
/* 809BA53C */ void initPosAngle(Vec&, s16);
1919
/* 809BA584 */ cPhs__Step create();
2020
/* 809BA730 */ void create_init();
21-
/* 809BAA80 */ ~daNpcFgd_c();
21+
/* 809BAA80 */ virtual ~daNpcFgd_c();
2222

2323
int getType() { return fopAcM_GetParam(this) & 0xFF; }
2424
int getObjNum() { return (fopAcM_GetParam(this) >> 8) & 0xFF; }

0 commit comments

Comments
 (0)