Skip to content

Commit 36ab58e

Browse files
committed
Add a precompiled header for RELs
1 parent ef75333 commit 36ab58e

File tree

983 files changed

+2456
-4338
lines changed

Some content is hidden

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

983 files changed

+2456
-4338
lines changed

configure.py

Lines changed: 78 additions & 71 deletions
Large diffs are not rendered by default.

include/Z2AudioLib/Z2Calc.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
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+
#ifndef SUPPRESS_CNULLVEC
10+
static const Vec cNullVec = {0.0f, 0.0f, 0.0f};
11+
#endif
12+
713
enum CurveSign {
814
CURVE_SIGN_0 = 0,
915
CURVE_SIGN_1 = 1,

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_shop_maro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
class daNpc_shopMaro_c : public dShopSystem_c {
1515
public:
1616
/* 80AEBEB4 */ int create();
17-
/* 80AEBF04 */ daNpc_shopMaro_c();
18-
/* 80AEBF64 */ virtual ~daNpc_shopMaro_c();
17+
/* 80AEBF04 */ daNpc_shopMaro_c() : dShopSystem_c(0,0,0,0,0,0,0,0) {}
18+
/* 80AEBF64 */ virtual ~daNpc_shopMaro_c() {}
1919
};
2020

2121
STATIC_ASSERT(sizeof(daNpc_shopMaro_c) == 0xf7c);

include/d/actor/d_a_obj_fw.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class daObj_Fw_HIO_c : public JORReflexible {
5151
/* 80BF204C */ daObj_Fw_HIO_c();
5252
/* 80BF2AB0 */ virtual ~daObj_Fw_HIO_c() {}
5353

54+
#if DEBUG
55+
void genMessage(JORMContext*);
56+
#endif
57+
5458
/* 流木 - Driftwood */
5559
/* 0x4 */ s8 field_0x4;
5660
/* 0x8 */ f32 size; // 大きさ - Size

include/d/actor/d_a_obj_swpush.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,16 @@ namespace daObjSwpush {
199199
if (--mCount == 0) {
200200
daObj::HioVarious_c::clean(this);
201201
}
202-
}
202+
203+
void dt() {
204+
if (--mCount == 0) {
205+
daObj::HioVarious_c::clean(this);
206+
}
207+
}
208+
209+
/* 0x4 */ int mCount;
210+
/* 0x8 */ Hio_c::Attr_c field_0x8[5];
211+
};
203212
#endif
204213
};
205214

include/d/d_drawlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class dDlst_list_c {
377377
m3DLineMatSortPacket[param_1->getMaterialID()].setMat(param_1);
378378
}
379379

380-
void set3DlineMatDark(mDoExt_3DlineMat_c *param_1) {
380+
void set3DlineMatDark(mDoExt_3DlineMat_c *param_1) {
381381
m3DLineMatSortPacket[param_1->getMaterialID()].setMatDark(param_1);
382382
}
383383

include/d/d_map_path_fmap.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "d/d_tresure.h"
66
#include "d/d_stage.h"
77

8+
89
class fmpTresTypeGroupData_c {
910
public:
1011
fmpTresTypeGroupData_c() {
@@ -32,8 +33,15 @@ class fmpTresTypeGroupData_c {
3233
class fmpTresTypeGroupDataList_c {
3334
public:
3435
/* 8003D790 */ void addTypeGroupData(u8, dTres_c::data_s const*);
35-
/* 8003EB10 */ ~fmpTresTypeGroupDataList_c();
36-
/* 8003EC90 */ fmpTresTypeGroupDataList_c();
36+
/* 8003EB10 */ ~fmpTresTypeGroupDataList_c() {
37+
if (mpTypeGroupDataHead != NULL) {
38+
delete mpTypeGroupDataHead;
39+
}
40+
}
41+
/* 8003EC90 */ fmpTresTypeGroupDataList_c() {
42+
mpTypeGroupDataHead = NULL;
43+
mpNextData = NULL;
44+
}
3745

3846
fmpTresTypeGroupData_c* getTypeGroupDataHead() { return mpTypeGroupDataHead; }
3947

include/d/dolzel.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef __DOLZEL_H__
2+
#define __DOLZEL_H__
3+
4+
#ifdef __MWERKS__
5+
#include "d/dolzel.mch"
6+
#else
7+
#include "d/dolzel.pch"
8+
#endif
9+
10+
#endif

include/d/dolzel.pch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#ifndef DOLZEL_PCH
2+
#define DOLZEL_PCH
3+
4+
#include "dolphin/types.h" // IWYU pragma: export
5+
6+
// Fixes weak .data
7+
#include "weak_data_lbl_82_data_10.h"
8+
#include "weak_data_lit_1787.h"
9+
#include "math.h" // IWYU pragma: export
10+
#include "JSystem/JGeometry.h" // IWYU pragma: export
11+
#include "JSystem/J3DGraphBase/J3DMatBlock.h" // IWYU pragma: export
12+
#include "JSystem/J3DGraphAnimator/J3DJoint.h" // IWYU pragma: export
13+
14+
// Fixes weak function ordering
15+
#include "d/d_com_inf_game.h" // IWYU pragma: export
16+
#include "SSystem/SComponent/c_xyz.h" // IWYU pragma: export
17+
#include "d/d_cc_d.h" // IWYU pragma: export
18+
#include "d/d_bg_w.h" // IWYU pragma: export
19+
#include "d/d_bg_s_acch.h" // IWYU pragma: export
20+
#include "SSystem/SComponent/c_bg_s_chk.h" // IWYU pragma: export
21+
#include "SSystem/SComponent/c_lib.h" // IWYU pragma: export
22+
#include "JSystem/JKernel/JKRHeap.h" // IWYU pragma: export
23+
#include "JSystem/JKernel/JKRFileFinder.h" // IWYU pragma: export
24+
#include "JSystem/J2DGraph/J2DAnimation.h" // IWYU pragma: export
25+
#include "JSystem/J2DGraph/J2DPane.h" // IWYU pragma: export
26+
#include "JSystem/J2DGraph/J2DPictureEx.h" // IWYU pragma: export
27+
#include "JSystem/J2DGraph/J2DTextBoxEx.h" // IWYU pragma: export
28+
#include "JSystem/J2DGraph/J2DWindowEx.h" // IWYU pragma: export
29+
#include "JSystem/J3DGraphAnimator/J3DMaterialAnm.h" // IWYU pragma: export
30+
#include "d/d_bg_s_lin_chk.h" // IWYU pragma: export
31+
#include "m_Do/m_Do_hostIO.h" // IWYU pragma: export
32+
#include "d/d_cc_uty.h" // IWYU pragma: export
33+
34+
#endif

0 commit comments

Comments
 (0)