Skip to content

Commit

Permalink
Fix the dTg_c class to not override the common four lifecycle methods
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper committed Sep 11, 2024
1 parent d068ec1 commit 0ba0cc1
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 28 deletions.
8 changes: 4 additions & 4 deletions config/SOUE01/rels/d_t_light_shaft_effNP/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ _prolog = .text:0x00000000; // type:function size:0x2C scope:global
_epilog = .text:0x00000030; // type:function size:0x2C scope:global
_unresolved = .text:0x00000060; // type:function size:0x4 scope:global
dTgLightShaftEff_c_classInit__Fv = .text:0x00000070; // type:function size:0x4C
create__5dTg_cFv = .text:0x000000C0; // type:function size:0x8
doDelete__5dTg_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__5dTg_cFv = .text:0x000000E0; // type:function size:0x8
draw__5dTg_cFv = .text:0x000000F0; // type:function size:0x8
create__18dTgLightShaftEff_cFv = .text:0x000000C0; // type:function size:0x8
doDelete__18dTgLightShaftEff_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__18dTgLightShaftEff_cFv = .text:0x000000E0; // type:function size:0x8
draw__18dTgLightShaftEff_cFv = .text:0x000000F0; // type:function size:0x8
__dt__18dTgLightShaftEff_cFv = .text:0x00000100; // type:function size:0x5C
_ctors = .ctors:0x00000000; // type:label scope:global
_dtors = .dtors:0x00000000; // type:label scope:global
Expand Down
6 changes: 3 additions & 3 deletions config/SOUE01/rels/d_t_map_instNP/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ _epilog = .text:0x00000030; // type:function size:0x2C scope:global
_unresolved = .text:0x00000060; // type:function size:0x4 scope:global
dTgMapInst_c_classInit__Fv = .text:0x00000070; // type:function size:0x4C
create__12dTgMapInst_cFv = .text:0x000000C0; // type:function size:0x10
doDelete__5dTg_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__5dTg_cFv = .text:0x000000E0; // type:function size:0x8
draw__5dTg_cFv = .text:0x000000F0; // type:function size:0x8
doDelete__12dTgMapInst_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__12dTgMapInst_cFv = .text:0x000000E0; // type:function size:0x8
draw__12dTgMapInst_cFv = .text:0x000000F0; // type:function size:0x8
__dt__12dTgMapInst_cFv = .text:0x00000100; // type:function size:0x5C
_ctors = .ctors:0x00000000; // type:label scope:global
_dtors = .dtors:0x00000000; // type:label scope:global
Expand Down
8 changes: 4 additions & 4 deletions config/SOUE01/rels/d_t_tackleNP/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ _prolog = .text:0x00000000; // type:function size:0x2C scope:global
_epilog = .text:0x00000030; // type:function size:0x2C scope:global
_unresolved = .text:0x00000060; // type:function size:0x4 scope:global
dTgTackle_c_classInit__Fv = .text:0x00000070; // type:function size:0x4C
create__5dTg_cFv = .text:0x000000C0; // type:function size:0x8
doDelete__5dTg_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__5dTg_cFv = .text:0x000000E0; // type:function size:0x8
draw__5dTg_cFv = .text:0x000000F0; // type:function size:0x8
create__11dTgTackle_cFv = .text:0x000000C0; // type:function size:0x8
doDelete__11dTgTackle_cFv = .text:0x000000D0; // type:function size:0x8
actorExecute__11dTgTackle_cFv = .text:0x000000E0; // type:function size:0x8
draw__11dTgTackle_cFv = .text:0x000000F0; // type:function size:0x8
__dt__11dTgTackle_cFv = .text:0x00000100; // type:function size:0x5C
_ctors = .ctors:0x00000000; // type:label scope:global
_dtors = .dtors:0x00000000; // type:label scope:global
Expand Down
5 changes: 5 additions & 0 deletions include/d/tg/d_t_light_shaft_eff.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class dTgLightShaftEff_c : public dTg_c {
public:
dTgLightShaftEff_c() {}
virtual ~dTgLightShaftEff_c() {}

virtual int create() override;
virtual int doDelete() override;
virtual int actorExecute() override;
virtual int draw() override;
};

#endif
3 changes: 3 additions & 0 deletions include/d/tg/d_t_map_inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class dTgMapInst_c : public dTg_c {
virtual ~dTgMapInst_c() {}

virtual int create() override;
virtual int doDelete() override;
virtual int actorExecute() override;
virtual int draw() override;

u8 field_0xfc;
};
Expand Down
5 changes: 5 additions & 0 deletions include/d/tg/d_t_tackle.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class dTgTackle_c : public dTg_c {
public:
dTgTackle_c() {}
virtual ~dTgTackle_c() {}

virtual int create() override;
virtual int doDelete() override;
virtual int actorExecute() override;
virtual int draw() override;
};

#endif
12 changes: 0 additions & 12 deletions include/d/tg/d_tg.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@
class dTg_c : public dAcBase_c {
public:
virtual ~dTg_c() {}
virtual int draw() override {
return 1;
}
virtual int actorExecute() override {
return 1;
}
virtual int doDelete() override {
return 1;
}
virtual int create() override {
return 1;
}
};

#endif
5 changes: 1 addition & 4 deletions src/REL/d/t/d_t_genki_dws_tgt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
#include <toBeSorted/scgame.h>


// Maybe this is dTg_c and it is empty?
class UnkIntermediateClass : public dAcBase_c {};

class dTgGenkiDwsTgt_c : public UnkIntermediateClass {
class dTgGenkiDwsTgt_c : public dTg_c {
public:
dTgGenkiDwsTgt_c() : mDowsingTarget(this, DowsingTarget::SLOT_NONE) {}
virtual ~dTgGenkiDwsTgt_c() {}
Expand Down
16 changes: 15 additions & 1 deletion src/REL/d/t/d_t_light_shaft_eff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@

SPECIAL_ACTOR_PROFILE(TAG_LIGHT_SHAFT_EFF, dTgLightShaftEff_c, fProfile::TAG_LIGHT_SHAFT_EFF, 0x025E, 0, 0);

// clang-format on
int dTgLightShaftEff_c::create() {
return SUCCEEDED;
}

int dTgLightShaftEff_c::doDelete() {
return 1;
}

int dTgLightShaftEff_c::actorExecute() {
return 1;
}

int dTgLightShaftEff_c::draw() {
return 1;
}
12 changes: 12 additions & 0 deletions src/REL/d/t/d_t_map_inst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@ SPECIAL_ACTOR_PROFILE(TAG_MAP_INST, dTgMapInst_c, fProfile::TAG_MAP_INST, 0x021d

int dTgMapInst_c::create() {
field_0xfc = params & 0xff;
return SUCCEEDED;
}

int dTgMapInst_c::doDelete() {
return 1;
}

int dTgMapInst_c::actorExecute() {
return 1;
}

int dTgMapInst_c::draw() {
return 1;
}
16 changes: 16 additions & 0 deletions src/REL/d/t/d_t_tackle.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#include <d/tg/d_t_tackle.h>

SPECIAL_ACTOR_PROFILE(TACKLE_TAG, dTgTackle_c, fProfile::TACKLE_TAG, 0x0241, 0, 0);

int dTgTackle_c::create() {
return SUCCEEDED;
}

int dTgTackle_c::doDelete() {
return 1;
}

int dTgTackle_c::actorExecute() {
return 1;
}

int dTgTackle_c::draw() {
return 1;
}

0 comments on commit 0ba0cc1

Please sign in to comment.