Skip to content

Commit 0d3b4bf

Browse files
authored
A little work on daObjMasterSword_c (#2316)
1 parent 0f141c2 commit 0d3b4bf

File tree

3 files changed

+70
-415
lines changed

3 files changed

+70
-415
lines changed

config/GZ2E01/rels/d_a_obj_master_sword/symbols.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ initWait__18daObjMasterSword_cFv = .text:0x00000078; // type:function size:0x58
55
executeWait__18daObjMasterSword_cFv = .text:0x000000D0; // type:function size:0x100 scope:global
66
createHeapCallBack__18daObjMasterSword_cFP10fopAc_ac_c = .text:0x000001D0; // type:function size:0x20 scope:global
77
CreateHeap__18daObjMasterSword_cFv = .text:0x000001F0; // type:function size:0x128 scope:global
8-
daObjMasterSword_Create__FP10fopAc_ac_c = .text:0x00000318; // type:function size:0x20 scope:global
8+
daObjMasterSword_Create__FP10fopAc_ac_c = .text:0x00000318; // type:function size:0x20 scope:local
99
create__18daObjMasterSword_cFv = .text:0x00000338; // type:function size:0x1B4 scope:global
1010
create_init__18daObjMasterSword_cFv = .text:0x000004EC; // type:function size:0x2A0 scope:global
1111
__dt__12dBgS_ObjAcchFv = .text:0x0000078C; // type:function size:0x70 scope:global
@@ -14,12 +14,12 @@ __dt__8cM3dGCylFv = .text:0x0000086C; // type:function size:0x48 scope:global
1414
__dt__8cM3dGAabFv = .text:0x000008B4; // type:function size:0x48 scope:global
1515
__dt__10dCcD_GSttsFv = .text:0x000008FC; // type:function size:0x5C scope:global
1616
__dt__12J3DFrameCtrlFv = .text:0x00000958; // type:function size:0x48 scope:global
17-
daObjMasterSword_Delete__FP18daObjMasterSword_c = .text:0x000009A0; // type:function size:0x28 scope:global
17+
daObjMasterSword_Delete__FP18daObjMasterSword_c = .text:0x000009A0; // type:function size:0x28 scope:local
1818
__dt__18daObjMasterSword_cFv = .text:0x000009C8; // type:function size:0x1A0 scope:global
19-
daObjMasterSword_Execute__FP18daObjMasterSword_c = .text:0x00000B68; // type:function size:0x10C scope:global
20-
daObjMasterSword_Draw__FP18daObjMasterSword_c = .text:0x00000C74; // type:function size:0x20 scope:global
19+
daObjMasterSword_Execute__FP18daObjMasterSword_c = .text:0x00000B68; // type:function size:0x10C scope:local
20+
daObjMasterSword_Draw__FP18daObjMasterSword_c = .text:0x00000C74; // type:function size:0x20 scope:local
2121
draw__18daObjMasterSword_cFv = .text:0x00000C94; // type:function size:0x180 scope:global
22-
daObjMasterSword_IsDelete__FP18daObjMasterSword_c = .text:0x00000E14; // type:function size:0x8 scope:global
22+
daObjMasterSword_IsDelete__FP18daObjMasterSword_c = .text:0x00000E14; // type:function size:0x8 scope:local
2323
__dt__10cCcD_GSttsFv = .text:0x00000E1C; // type:function size:0x48 scope:global
2424
__sinit_d_a_obj_master_sword_cpp = .text:0x00000E64; // type:function size:0x40 scope:local
2525
@36@__dt__12dBgS_ObjAcchFv = .text:0x00000EA4; // type:function size:0x8 scope:local
@@ -38,14 +38,14 @@ mAttr__18daObjMasterSword_c = .rodata:0x00000000; // type:object size:0x4 scope:
3838
@4092 = .rodata:0x0000002C; // type:object size:0x4 scope:local
3939
@stringBase0 = .rodata:0x00000030; // type:object size:0xA scope:local data:string_table
4040
...data.0 = .data:0x00000000; // type:label scope:local
41-
cNullVec__6Z2Calc = .data:0x00000000; // type:object size:0xC scope:global
41+
cNullVec__6Z2Calc = .data:0x00000000; // type:object size:0xC scope:local
4242
@1787 = .data:0x0000000C; // type:object size:0x4 scope:local
43-
l_arcName = .data:0x00000020; // type:object size:0x4 scope:global data:4byte
43+
l_arcName = .data:0x00000020; // type:object size:0x4 scope:local data:4byte
4444
@3655 = .data:0x00000024; // type:object size:0xC scope:local
4545
@3656 = .data:0x00000030; // type:object size:0xC scope:local
4646
ActionTable__18daObjMasterSword_c = .data:0x0000003C; // type:object size:0x18 scope:global data:4byte
4747
ccCylSrc$localstatic3$initCollision__18daObjMasterSword_cFv = .data:0x00000054; // type:object size:0x44 scope:local data:float
48-
l_daObjMasterSword_Method = .data:0x00000098; // type:object size:0x20 scope:global
48+
l_daObjMasterSword_Method = .data:0x00000098; // type:object size:0x20 scope:local
4949
g_profile_Obj_MasterSword = .data:0x000000B8; // type:object size:0x30 scope:global
5050
__vt__10cCcD_GStts = .data:0x000000E8; // type:object size:0xC scope:global
5151
__vt__10dCcD_GStts = .data:0x000000F4; // type:object size:0xC scope:global
@@ -54,4 +54,4 @@ __vt__12dBgS_ObjAcch = .data:0x0000010C; // type:object size:0x24 scope:global
5454
__vt__8cM3dGCyl = .data:0x00000130; // type:object size:0xC scope:global
5555
__vt__8cM3dGAab = .data:0x0000013C; // type:object size:0xC scope:global
5656
__vt__12J3DFrameCtrl = .data:0x00000148; // type:object size:0xC scope:global
57-
lbl_568_bss_0 = .bss:0x00000000; // type:object size:0x1 data:byte
57+
lbl_568_bss_0 = .bss:0x00000000; // type:object size:0x1 scope:local data:byte

include/d/actor/d_a_obj_master_sword.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
class daObjMasterSword_c;
88
typedef void (daObjMasterSword_c::*actionFunc)();
99

10+
struct daObjMasterSword_Attr_c {
11+
f32 field_0x0;
12+
};
13+
1014
/**
1115
* @ingroup actors-objects
1216
* @class daObjMasterSword_c
@@ -38,14 +42,13 @@ class daObjMasterSword_c : public fopAc_ac_c {
3842
inline void callExecute();
3943
inline int execute();
4044

41-
f32 attr() const { return mAttr; }
45+
f32 attr() const { return mAttr.field_0x0; }
4246

4347
u8 getEventID() { return (fopAcM_GetParam(this) >> 0x10) & 0xFF; }
4448
u16 getFlagNo() { return fopAcM_GetParam(this) & 0xFFFF; }
4549

46-
static f32 const mAttr;
47-
// static actionFunc ActionTable[];
48-
static u8 ActionTable[24];
50+
static daObjMasterSword_Attr_c const mAttr;
51+
static actionFunc ActionTable[];
4952

5053
private:
5154
/* 0x568 */ J3DModel* mpModel;

0 commit comments

Comments
 (0)