Skip to content

Commit d629cc3

Browse files
authored
d_a_e_bg matching (#2567)
1 parent e49ed12 commit d629cc3

File tree

5 files changed

+1370
-744
lines changed

5 files changed

+1370
-744
lines changed

config/GZ2E01/rels/d_a_e_bg/symbols.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ __vt__12dBgS_ObjAcch = .data:0x00000160; // type:object size:0x24 scope:global
105105
__vt__12J3DFrameCtrl = .data:0x00000184; // type:object size:0xC scope:global
106106
__vt__12daE_BG_HIO_c = .data:0x00000190; // type:object size:0xC scope:global
107107
__global_destructor_chain = .bss:0x00000000; // type:object size:0x4 scope:global
108-
lbl_174_bss_8 = .bss:0x00000008; // type:object size:0x1 data:byte
108+
l_initHIO = .bss:0x00000008; // type:object size:0x1 data:byte
109109
@3763 = .bss:0x0000000C; // type:object size:0xC scope:local
110110
l_HIO = .bss:0x00000018; // type:object size:0x24 scope:global data:byte

config/ShieldD/rels/d_a_e_bgD/symbols.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ lbl_165_data_298 = .data:0x00000298; // type:object size:0x24
142142
@119823 = .data:0x000004A4; // type:object size:0x11 scope:local data:string
143143
@119824 = .data:0x000004CC; // type:object size:0xD scope:local data:string
144144
lbl_165_data_4D9 = .data:0x000004D9; // type:object size:0x93
145-
lbl_165_bss_0 = .bss:0x00000000; // type:object size:0x1 data:byte
145+
l_initHIO = .bss:0x00000000; // type:object size:0x1 data:byte
146146
l_HIO = .bss:0x00000004; // type:object size:0x24 scope:global data:byte

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ def MatchingFor(*versions) -> bool:
16511651
ActorRel(MatchingFor("GZ2E01"), "d_a_e_arrow"),
16521652
ActorRel(Equivalent, "d_a_e_ba"), # weak func order
16531653
ActorRel(NonMatching, "d_a_e_bee"),
1654-
ActorRel(NonMatching, "d_a_e_bg"),
1654+
ActorRel(MatchingFor("GZ2E01"), "d_a_e_bg"),
16551655
ActorRel(NonMatching, "d_a_e_bi"),
16561656
ActorRel(MatchingFor("GZ2E01"), "d_a_e_bi_leaf"),
16571657
ActorRel(Equivalent, "d_a_e_bs"), # weak func order

include/d/actor/d_a_e_bg.h

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@
1717
*/
1818
class daE_BG_c : public fopEn_enemy_c {
1919
public:
20-
/* 8068585C */ void ctrlJoint(J3DJoint*, J3DModel*);
21-
/* 80685948 */ void JointCallBack(J3DJoint*, int);
22-
/* 80685994 */ void draw();
20+
/* 8068585C */ int ctrlJoint(J3DJoint*, J3DModel*);
21+
/* 80685948 */ static int JointCallBack(J3DJoint*, int);
22+
/* 80685994 */ int draw();
2323
/* 80685B70 */ void setBck(int, u8, f32, f32);
2424
/* 80685C14 */ void setActionMode(int, int);
2525
/* 80685C2C */ void damage_check();
2626
/* 80685DBC */ void setSparkEffect();
27-
/* 80685F04 */ void search_esa();
27+
/* 80685F04 */ fopAc_ac_c* search_esa();
2828
/* 80685F88 */ void executeBorn();
2929
/* 80686210 */ void executeSwim();
3030
/* 80686C90 */ void executeAttack();
3131
/* 80687B38 */ void executeDamage();
32-
/* 80687CD8 */ void setBombCarry(int);
32+
/* 80687CD8 */ bool setBombCarry(int);
3333
/* 80687DEC */ void executeBomb();
3434
/* 80687FC4 */ void executeBirth();
3535
/* 8068838C */ void executeHook();
3636
/* 806883D0 */ void executeEat();
3737
/* 80689168 */ void action();
3838
/* 80689544 */ void mtx_set();
3939
/* 8068966C */ void cc_set();
40-
/* 806897EC */ void execute();
41-
/* 80689978 */ void _delete();
42-
/* 80689A0C */ void CreateHeap();
43-
/* 80689C38 */ void create();
40+
/* 806897EC */ int execute();
41+
/* 80689978 */ int _delete();
42+
/* 80689A0C */ int CreateHeap();
43+
/* 80689C38 */ int create();
4444

4545
void setBgId(u32 i_bgId) { mBgId = i_bgId; }
4646
bool isBomb() { return mIsBomb; }
@@ -55,7 +55,7 @@ class daE_BG_c : public fopEn_enemy_c {
5555
/* 0x670 */ s32 mActionMode;
5656
/* 0x674 */ s32 mMoveMode;
5757
/* 0x678 */ u32 mShadowKey;
58-
/* 0x67C */ u8 field_0x67C[0x684 - 0x67C];
58+
/* 0x67C */ u8 field_0x67c[0x684 - 0x67C];
5959
/* 0x684 */ f32 field_0x684;
6060
/* 0x688 */ f32 field_0x688;
6161
/* 0x68C */ u8 field_0x68c;
@@ -70,24 +70,21 @@ class daE_BG_c : public fopEn_enemy_c {
7070
/* 0x69E */ s16 field_0x69e;
7171
/* 0x6A0 */ s16 field_0x6a0;
7272
/* 0x6A2 */ s16 field_0x6a2;
73-
/* 0x6A4 */ s16 field_0x6a4;
74-
/* 0x6A6 */ s16 field_0x6a6;
75-
/* 0x6A8 */ s16 field_0x6a8;
73+
/* 0x6A4 */ s16 field_0x6a4[3];
7674
/* 0x6AA */ s16 field_0x6aa;
7775
/* 0x6AC */ s16 field_0x6ac;
7876
/* 0x6AE */ u8 field_0x6ae;
7977
/* 0x6AF */ u8 field_0x6af;
8078
/* 0x6B0 */ u8 field_0x6b0;
8179
/* 0x6B1 */ bool mIsBomb;
82-
/* 0x6B2 */ u8 field_0x6B2[0x6B4 - 0x6B2];
80+
/* 0x6B2 */ u8 field_0x6b2[0x6B4 - 0x6B2];
8381
/* 0x6B4 */ dBgS_AcchCir mAcchCir;
8482
/* 0x6F4 */ dBgS_ObjAcch mObjAcch;
8583
/* 0x8CC */ dCcD_Stts mStts;
8684
/* 0x908 */ dCcD_Sph mSphere;
8785
/* 0xA40 */ dCcD_Sph mAtSphere;
8886
/* 0xB78 */ dCcU_AtInfo mAtInfo;
89-
/* 0xB9C */ u32 mParticle;
90-
/* 0xBA0 */ u8 field_0xBA0[0xBB0 - 0xBA0];
87+
/* 0xB9C */ u32 mParticle[5];
9188
/* 0xBB0 */ u32 mParticle2;
9289
/* 0xBB4 */ u32 mParticle3;
9390
/* 0xBB8 */ u8 mHIOInit;
@@ -98,18 +95,18 @@ STATIC_ASSERT(sizeof(daE_BG_c) == 0xbbc);
9895
class daE_BG_HIO_c : public JORReflexible {
9996
public:
10097
/* 8068580C */ daE_BG_HIO_c();
101-
/* 8068A19C */ virtual ~daE_BG_HIO_c();
98+
/* 8068A19C */ virtual ~daE_BG_HIO_c() {}
10299

103100
void genMessage(JORMContext*);
104101

105102
/* 0x04 */ s8 field_0x4;
106-
/* 0x08 */ f32 tracking_speed;
107-
/* 0x0C */ f32 rush_speed;
108-
/* 0x10 */ f32 waiting_distance_before_charging;
109-
/* 0x14 */ f32 player_search_distance;
110-
/* 0x18 */ f32 attack_range;
111-
/* 0x1C */ f32 swimming_range;
112-
/* 0x20 */ f32 spring_time;
103+
/* 0x08 */ f32 mTrackingSpeed;
104+
/* 0x0C */ f32 mRushSpeed;
105+
/* 0x10 */ f32 mWaitDistanceBeforeCharging;
106+
/* 0x14 */ f32 mPlayerSearchDistance;
107+
/* 0x18 */ f32 mAttackRange;
108+
/* 0x1C */ f32 mSwimRange;
109+
/* 0x20 */ f32 mJumpTime;
113110
};
114111

115112
#endif /* D_A_E_BG_H */

0 commit comments

Comments
 (0)