mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Debug build now takes .alf as input instead of .dol (#2360)
* Fix debug build * Debug build now takes .alf as input instead of .dol I had to manually remove the following line from symbols.txt for DTK to work: ``` .data = .sbss:0x8074C97C; // type:object size:0x4 scope:local data:byte ``` After that it built OK, and DTK automatically modified all other lines in symbols.txt. * Fix pragma in header messing up debug optimization level
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: framework
|
name: framework
|
||||||
object_base: orig/ShieldD
|
object_base: orig/ShieldD
|
||||||
object: sys/main.dol
|
object: RframeworkD.alf
|
||||||
hash: 16415549d9adce985b8cf736f1a5d7afb570b48e
|
hash: 14b910141cc0c0a4b24e62c3d3fd9cd14338f725
|
||||||
symbols: config/ShieldD/symbols.txt
|
symbols: config/ShieldD/symbols.txt
|
||||||
splits: config/ShieldD/splits.txt
|
splits: config/ShieldD/splits.txt
|
||||||
# map: orig/ShieldD/fixed_maps/RframeworkD.map
|
# map: orig/ShieldD/fixed_maps/RframeworkD.map
|
||||||
|
|||||||
+70340
-70336
File diff suppressed because it is too large
Load Diff
@@ -92,7 +92,7 @@ struct TValueIterator {
|
|||||||
|
|
||||||
const void* get() const { return mBegin; }
|
const void* get() const { return mBegin; }
|
||||||
|
|
||||||
typename Parser::ParseType operator*() {
|
typename Parser::ParseType operator*() const {
|
||||||
return *(typename Parser::ParseType*)get();
|
return *(typename Parser::ParseType*)get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -201,11 +201,11 @@ struct TParseData_fixed : public TParseData<T> {
|
|||||||
return TParseData::isValid() && getNext() != NULL;
|
return TParseData::isValid() && getNext() != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Iterator begin() {
|
Iterator begin() const {
|
||||||
return Iterator(fileCount);
|
return Iterator(fileCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
Iterator end() {
|
Iterator end() const {
|
||||||
Iterator i(fileCount);
|
Iterator i(fileCount);
|
||||||
i += size();
|
i += size();
|
||||||
return i;
|
return i;
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ struct TCreateObject : public JStudio::TCreateObject {
|
|||||||
pJAISoundStarter_ = p_soundStarter;
|
pJAISoundStarter_ = p_soundStarter;
|
||||||
pJSGSystem_ = p_system;
|
pJSGSystem_ = p_system;
|
||||||
mPermit_onExit_notEnd = false;
|
mPermit_onExit_notEnd = false;
|
||||||
|
JUT_ASSERT(45, pJAISoundStarter_!=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 8028D550 */ virtual ~TCreateObject();
|
/* 8028D550 */ virtual ~TCreateObject();
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ struct TCreateObject : public JStudio::TCreateObject {
|
|||||||
pJPAEmitterManager_ = p_emitMgr;
|
pJPAEmitterManager_ = p_emitMgr;
|
||||||
pJSGSystem_ = p_system;
|
pJSGSystem_ = p_system;
|
||||||
mPermit_onExit_notEnd = false;
|
mPermit_onExit_notEnd = false;
|
||||||
|
JUT_ASSERT(48, pJPAEmitterManager_!=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 8028E3A0 */ virtual ~TCreateObject();
|
/* 8028E3A0 */ virtual ~TCreateObject();
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ typedef JStudio::TObject* (*ObjCreateFuncT)(const JStudio::stb::data::TParse_TBl
|
|||||||
struct TCreateObject : public JStudio::TCreateObject {
|
struct TCreateObject : public JStudio::TCreateObject {
|
||||||
TCreateObject(const JStage::TSystem* pSystem) {
|
TCreateObject(const JStage::TSystem* pSystem) {
|
||||||
pJSGSystem_ = pSystem;
|
pJSGSystem_ = pSystem;
|
||||||
|
JUT_ASSERT(42, pJSGSystem_!=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 80289B00 */ virtual ~TCreateObject();
|
/* 80289B00 */ virtual ~TCreateObject();
|
||||||
|
|||||||
@@ -3195,9 +3195,10 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// this might be a fake match, but helps fix usage in many functions
|
// this might be a fake match, but helps fix usage in many functions
|
||||||
|
#pragma push
|
||||||
#pragma optimization_level 2
|
#pragma optimization_level 2
|
||||||
BOOL checkAttentionLock() { return mAttention->Lockon(); }
|
BOOL checkAttentionLock() { return mAttention->Lockon(); }
|
||||||
#pragma optimization_level 3
|
#pragma pop
|
||||||
|
|
||||||
bool checkUpperAnime(u16 i_idx) const { return mUpperAnmHeap[UPPER_2].getIdx() == i_idx; }
|
bool checkUpperAnime(u16 i_idx) const { return mUpperAnmHeap[UPPER_2].getIdx() == i_idx; }
|
||||||
bool checkUnderAnime(u16 i_idx) const { return mUnderAnmHeap[UNDER_2].getIdx() == i_idx; }
|
bool checkUnderAnime(u16 i_idx) const { return mUnderAnmHeap[UNDER_2].getIdx() == i_idx; }
|
||||||
|
|||||||
@@ -89,18 +89,12 @@ public:
|
|||||||
|
|
||||||
STATIC_ASSERT(sizeof(b_bh_class) == 0xf4c);
|
STATIC_ASSERT(sizeof(b_bh_class) == 0xf4c);
|
||||||
|
|
||||||
class daB_BH_HIO_c
|
class daB_BH_HIO_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
|
||||||
: public JORReflexible
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/* 805AE26C */ daB_BH_HIO_c();
|
/* 805AE26C */ daB_BH_HIO_c();
|
||||||
/* 805B3098 */ virtual ~daB_BH_HIO_c() {}
|
/* 805B3098 */ virtual ~daB_BH_HIO_c() {}
|
||||||
|
|
||||||
#ifdef DEBUG
|
void genMessage(JORMContext*);
|
||||||
virtual void genMessage(JORMContext*);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* 0x04 */ s8 no;
|
/* 0x04 */ s8 no;
|
||||||
/* 0x08 */ f32 model_size;
|
/* 0x08 */ f32 model_size;
|
||||||
|
|||||||
@@ -189,18 +189,13 @@ public:
|
|||||||
|
|
||||||
STATIC_ASSERT(sizeof(b_gnd_class) == 0x2790);
|
STATIC_ASSERT(sizeof(b_gnd_class) == 0x2790);
|
||||||
|
|
||||||
class daB_GND_HIO_c
|
class daB_GND_HIO_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
|
||||||
: public JORReflexible
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/* 805F4A4C */ daB_GND_HIO_c();
|
/* 805F4A4C */ daB_GND_HIO_c();
|
||||||
#if DEBUG
|
|
||||||
virtual void genMessage(JORMContext*);
|
|
||||||
#endif
|
|
||||||
/* 80602230 */ virtual ~daB_GND_HIO_c() {}
|
/* 80602230 */ virtual ~daB_GND_HIO_c() {}
|
||||||
|
|
||||||
|
void genMessage(JORMContext*);
|
||||||
|
|
||||||
/* 0x04 */ s8 no;
|
/* 0x04 */ s8 no;
|
||||||
/* 0x08 */ f32 model_size;
|
/* 0x08 */ f32 model_size;
|
||||||
/* 0x0C */ f32 field_0xc;
|
/* 0x0C */ f32 field_0xc;
|
||||||
|
|||||||
+19
-25
@@ -5,6 +5,7 @@
|
|||||||
#include "d/d_cc_d.h"
|
#include "d/d_cc_d.h"
|
||||||
#include "dolphin/types.h"
|
#include "dolphin/types.h"
|
||||||
#include "f_op/f_op_actor.h"
|
#include "f_op/f_op_actor.h"
|
||||||
|
#include "JSystem/JHostIO/JORReflexible.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup actors-enemies
|
* @ingroup actors-enemies
|
||||||
@@ -15,31 +16,24 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class daB_MGN_HIO_c
|
class daB_MGN_HIO_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
public:
|
||||||
: public JORReflexible
|
/* 8060572C */ daB_MGN_HIO_c();
|
||||||
#endif
|
/* 8060F8D0 */ ~daB_MGN_HIO_c();
|
||||||
{
|
|
||||||
|
void genMessage(JORMContext*);
|
||||||
public:
|
|
||||||
/* 8060572C */ daB_MGN_HIO_c();
|
/* 0x08 */ f32 field_0x08; // 1.2f
|
||||||
/* 8060F8D0 */ ~daB_MGN_HIO_c();
|
/* 0x0C */ f32 field_0x0c; // 50.0f
|
||||||
|
/* 0x10 */ f32 field_0x10; // 70.0f
|
||||||
#ifdef DEBUG
|
/* 0x14 */ f32 field_0x14; // 1.0f
|
||||||
virtual void genMessage(JORMContext*);
|
/* 0x18 */ f32 field_0x18; // 100.0f
|
||||||
#endif
|
/* 0x1C */ f32 field_0x1c; // 100.0f
|
||||||
|
/* 0x20 */ f32 field_0x20; // 100.0f
|
||||||
/* 0x08 */ f32 field_0x08; // 1.2f
|
/* 0x24 */ f32 field_0x24;
|
||||||
/* 0x0C */ f32 field_0x0c; // 50.0f
|
/* 0x28 */ f32 field_0x28;
|
||||||
/* 0x10 */ f32 field_0x10; // 70.0f
|
/* 0x2C */ f32 field_0x2c;
|
||||||
/* 0x14 */ f32 field_0x14; // 1.0f
|
};
|
||||||
/* 0x18 */ f32 field_0x18; // 100.0f
|
|
||||||
/* 0x1C */ f32 field_0x1c; // 100.0f
|
|
||||||
/* 0x20 */ f32 field_0x20; // 100.0f
|
|
||||||
/* 0x24 */ f32 field_0x24;
|
|
||||||
/* 0x28 */ f32 field_0x28;
|
|
||||||
/* 0x2C */ f32 field_0x2c;
|
|
||||||
};
|
|
||||||
|
|
||||||
class daB_MGN_c : public fopEn_enemy_c {
|
class daB_MGN_c : public fopEn_enemy_c {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -48,18 +48,12 @@ public:
|
|||||||
|
|
||||||
STATIC_ASSERT(sizeof(e_mb_class) == 0x8cc);
|
STATIC_ASSERT(sizeof(e_mb_class) == 0x8cc);
|
||||||
|
|
||||||
class daE_MB_HIO_c
|
class daE_MB_HIO_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
|
||||||
: public JORReflexible
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/* 8070616C */ daE_MB_HIO_c();
|
/* 8070616C */ daE_MB_HIO_c();
|
||||||
/* 8070882C */ virtual ~daE_MB_HIO_c() {}
|
/* 8070882C */ virtual ~daE_MB_HIO_c() {}
|
||||||
|
|
||||||
#ifdef DEBUG
|
void genMessage(JORMContext*);
|
||||||
virtual void genMessage(JORMContext*);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* 0x04 */ s8 no;
|
/* 0x04 */ s8 no;
|
||||||
/* 0x08 */ f32 base_size;
|
/* 0x08 */ f32 base_size;
|
||||||
|
|||||||
@@ -93,11 +93,13 @@ public:
|
|||||||
|
|
||||||
STATIC_ASSERT(sizeof(e_th_class) == 0x123c);
|
STATIC_ASSERT(sizeof(e_th_class) == 0x123c);
|
||||||
|
|
||||||
class daE_TH_HIO_c {
|
class daE_TH_HIO_c : public JORReflexible {
|
||||||
public:
|
public:
|
||||||
/* 807B038C */ daE_TH_HIO_c();
|
/* 807B038C */ daE_TH_HIO_c();
|
||||||
/* 807B3FA4 */ virtual ~daE_TH_HIO_c() {}
|
/* 807B3FA4 */ virtual ~daE_TH_HIO_c() {}
|
||||||
|
|
||||||
|
void genMessage(JORMContext*);
|
||||||
|
|
||||||
/* 0x04 */ s8 no;
|
/* 0x04 */ s8 no;
|
||||||
/* 0x08 */ f32 base_size;
|
/* 0x08 */ f32 base_size;
|
||||||
/* 0x0C */ u8 unk_0xC[0x10 - 0xC];
|
/* 0x0C */ u8 unk_0xC[0x10 - 0xC];
|
||||||
|
|||||||
@@ -20,11 +20,7 @@ enum AnmNum {
|
|||||||
CD2_ANM_14 = 14,
|
CD2_ANM_14 = 14,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct daNpcCd2_HIO_Jnt_c
|
struct daNpcCd2_HIO_Jnt_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
|
||||||
: public JORReflexible
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
/* 8015A6E8 */ virtual ~daNpcCd2_HIO_Jnt_c() {}
|
/* 8015A6E8 */ virtual ~daNpcCd2_HIO_Jnt_c() {}
|
||||||
/* 8015A788 */ daNpcCd2_HIO_Jnt_c();
|
/* 8015A788 */ daNpcCd2_HIO_Jnt_c();
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
daNpcT_MotionSeqMngr_c::sequenceStepData_c const* param_5, int param_6,
|
daNpcT_MotionSeqMngr_c::sequenceStepData_c const* param_5, int param_6,
|
||||||
daNpcT_evtData_c const* param_7, char** param_8)
|
daNpcT_evtData_c const* param_7, char** param_8)
|
||||||
: daNpcT_c(param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8) {
|
: daNpcT_c(param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8) {
|
||||||
OS_REPORT("|%06d:%x|daPeru_c -> コンストラクト\n", g_counter, this);
|
OS_REPORT("|%06d:%x|daPeru_c -> コンストラクト\n", g_Counter.mCounter0, this);
|
||||||
}
|
}
|
||||||
/* 80D4BEC4 */ s32 getEyeballMaterialNo() { return 1; }
|
/* 80D4BEC4 */ s32 getEyeballMaterialNo() { return 1; }
|
||||||
/* 80D4BECC */ s32 getHeadJointNo() { return 4; }
|
/* 80D4BECC */ s32 getHeadJointNo() { return 4; }
|
||||||
|
|||||||
@@ -24,11 +24,7 @@ public:
|
|||||||
/* 0x1C */ JORReflexible* mPt;
|
/* 0x1C */ JORReflexible* mPt;
|
||||||
};
|
};
|
||||||
|
|
||||||
class mDoHIO_entry_c
|
class mDoHIO_entry_c : public JORReflexible {
|
||||||
#ifdef DEBUG
|
|
||||||
: public JORReflexible
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
mDoHIO_entry_c();
|
mDoHIO_entry_c();
|
||||||
|
|||||||
@@ -1174,7 +1174,7 @@ static int daE_TH_Delete(e_th_class* i_this) {
|
|||||||
|
|
||||||
if (i_this->mInitHIO) {
|
if (i_this->mInitHIO) {
|
||||||
l_initHIO = FALSE;
|
l_initHIO = FALSE;
|
||||||
mDoHIO_DELETE_CHILD(&l_HIO);
|
mDoHIO_DELETE_CHILD(l_HIO.no);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i_this->heap != NULL) {
|
if (i_this->heap != NULL) {
|
||||||
|
|||||||
@@ -33,13 +33,6 @@ static u8 cNullVec__6Z2Calc[12] = {
|
|||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 803BB5D4-803BB5EC 0186F4 0018+00 1/2 0/0 0/0 .data brightChackProc */
|
|
||||||
typedef void (dBrightCheck_c::*procFunc)();
|
|
||||||
static procFunc brightChackProc[] = {
|
|
||||||
&dBrightCheck_c::modeWait,
|
|
||||||
&dBrightCheck_c::modeMove,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* 80192F10-80192F98 18D850 0088+00 0/0 1/1 0/0 .text __ct__14dBrightCheck_cFP10JKRArchive */
|
/* 80192F10-80192F98 18D850 0088+00 0/0 1/1 0/0 .text __ct__14dBrightCheck_cFP10JKRArchive */
|
||||||
dBrightCheck_c::dBrightCheck_c(JKRArchive* i_archive) {
|
dBrightCheck_c::dBrightCheck_c(JKRArchive* i_archive) {
|
||||||
mArchive = i_archive;
|
mArchive = i_archive;
|
||||||
@@ -126,6 +119,13 @@ void dBrightCheck_c::screenSet() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 803BB5D4-803BB5EC 0186F4 0018+00 1/2 0/0 0/0 .data brightChackProc */
|
||||||
|
typedef void (dBrightCheck_c::*procFunc)();
|
||||||
|
static procFunc brightChackProc[] = {
|
||||||
|
&dBrightCheck_c::modeWait,
|
||||||
|
&dBrightCheck_c::modeMove,
|
||||||
|
};
|
||||||
|
|
||||||
/* 801934D0-80193508 18DE10 0038+00 0/0 1/1 0/0 .text _move__14dBrightCheck_cFv */
|
/* 801934D0-80193508 18DE10 0038+00 0/0 1/1 0/0 .text _move__14dBrightCheck_cFv */
|
||||||
void dBrightCheck_c::_move() {
|
void dBrightCheck_c::_move() {
|
||||||
(this->*brightChackProc[mMode])();
|
(this->*brightChackProc[mMode])();
|
||||||
|
|||||||
Reference in New Issue
Block a user