mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-11-27 15:20:37 +00:00
Link remaining Chappy/Kochappy mgrs
BlueChappyMgr.cpp, YellowChappyMgr.cpp, BlueKochappyMgr.cpp, YellowKochappyMgr.cpp
This commit is contained in:
parent
9902d5f77c
commit
b3a35c143f
@ -1,335 +0,0 @@
|
||||
.include "macros.inc"
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.balign 8
|
||||
lbl_8047BFC0:
|
||||
.asciz "/enemy/data/BlueChappy/moyou_565.3.bti"
|
||||
.balign 4
|
||||
lbl_8047BFE8:
|
||||
.asciz "/enemy/data/BlueChappy/swallow_565.3.bti"
|
||||
.balign 4
|
||||
lbl_8047C014: # Shift-JIS
|
||||
.4byte 0x90C28360
|
||||
.4byte 0x83838362
|
||||
.4byte 0x8373815B
|
||||
.4byte 0x837D836C
|
||||
.4byte 0x815B8357
|
||||
.4byte 0x83830000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.balign 8
|
||||
.global __vt__Q34Game10BlueChappy3Mgr
|
||||
__vt__Q34Game10BlueChappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game10BlueChappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game10BlueChappy3MgrFi
|
||||
.4byte getEnemy__Q34Game10BlueChappy3MgrFi
|
||||
.4byte doAlloc__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game10BlueChappy3MgrFv
|
||||
.4byte createModel__Q34Game10ChappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game10BlueChappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture0__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getChangeTexture1__Q34Game10BlueChappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.balign 8
|
||||
"cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@":
|
||||
.4byte lbl_8047BFC0
|
||||
"cChappyChangeTexName1__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@":
|
||||
.4byte lbl_8047BFE8
|
||||
|
||||
.section .text, "ax" # 0x800056C0 - 0x80472F00
|
||||
.global __ct__Q34Game10BlueChappy3MgrFiUc
|
||||
__ct__Q34Game10BlueChappy3MgrFiUc:
|
||||
/* 8012B8AC 001287EC 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012B8B0 001287F0 7C 08 02 A6 */ mflr r0
|
||||
/* 8012B8B4 001287F4 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012B8B8 001287F8 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012B8BC 001287FC 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012B8C0 00128800 4B FF ED B1 */ bl __ct__Q34Game10ChappyBase3MgrFiUc
|
||||
/* 8012B8C4 00128804 3C 60 80 4B */ lis r3, __vt__Q34Game10BlueChappy3Mgr@ha
|
||||
/* 8012B8C8 00128808 3C 80 80 48 */ lis r4, lbl_8047C014@ha
|
||||
/* 8012B8CC 0012880C 38 A3 E2 B0 */ addi r5, r3, __vt__Q34Game10BlueChappy3Mgr@l
|
||||
/* 8012B8D0 00128810 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012B8D4 00128814 90 BF 00 00 */ stw r5, 0(r31)
|
||||
/* 8012B8D8 00128818 38 A5 00 38 */ addi r5, r5, 0x38
|
||||
/* 8012B8DC 0012881C 38 04 C0 14 */ addi r0, r4, lbl_8047C014@l
|
||||
/* 8012B8E0 00128820 90 BF 00 04 */ stw r5, 4(r31)
|
||||
/* 8012B8E4 00128824 90 1F 00 18 */ stw r0, 0x18(r31)
|
||||
/* 8012B8E8 00128828 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012B8EC 0012882C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012B8F0 00128830 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012B8F4 00128834 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012B8F8 00128838 4E 80 00 20 */ blr
|
||||
|
||||
.global loadTexData__Q34Game10BlueChappy3MgrFv
|
||||
loadTexData__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012B8FC 0012883C 94 21 FF C0 */ stwu r1, -0x40(r1)
|
||||
/* 8012B900 00128840 7C 08 02 A6 */ mflr r0
|
||||
/* 8012B904 00128844 90 01 00 44 */ stw r0, 0x44(r1)
|
||||
/* 8012B908 00128848 93 E1 00 3C */ stw r31, 0x3c(r1)
|
||||
/* 8012B90C 0012884C 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012B910 00128850 38 61 00 08 */ addi r3, r1, 8
|
||||
/* 8012B914 00128854 80 8D 83 E0 */ lwz r4, "cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012B918 00128858 48 32 0D 05 */ bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
/* 8012B91C 0012885C 80 0D 83 E0 */ lwz r0, "cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012B920 00128860 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012B924 00128864 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012B928 00128868 90 01 00 08 */ stw r0, 8(r1)
|
||||
/* 8012B92C 0012886C 48 32 0E 75 */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012B930 00128870 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012B934 00128874 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012B938 00128878 90 1F 00 44 */ stw r0, 0x44(r31)
|
||||
/* 8012B93C 0012887C 80 0D 83 E4 */ lwz r0, "cChappyChangeTexName1__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012B940 00128880 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012B944 00128884 90 01 00 08 */ stw r0, 8(r1)
|
||||
/* 8012B948 00128888 48 32 0E 59 */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012B94C 0012888C 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012B950 00128890 90 1F 00 48 */ stw r0, 0x48(r31)
|
||||
/* 8012B954 00128894 80 01 00 44 */ lwz r0, 0x44(r1)
|
||||
/* 8012B958 00128898 83 E1 00 3C */ lwz r31, 0x3c(r1)
|
||||
/* 8012B95C 0012889C 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012B960 001288A0 38 21 00 40 */ addi r1, r1, 0x40
|
||||
/* 8012B964 001288A4 4E 80 00 20 */ blr
|
||||
|
||||
.global doAlloc__Q34Game10BlueChappy3MgrFv
|
||||
doAlloc__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012B968 001288A8 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012B96C 001288AC 7C 08 02 A6 */ mflr r0
|
||||
/* 8012B970 001288B0 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012B974 001288B4 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012B978 001288B8 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012B97C 001288BC 38 60 08 84 */ li r3, 0x884
|
||||
/* 8012B980 001288C0 4B EF 85 25 */ bl __nw__FUl
|
||||
/* 8012B984 001288C4 7C 64 1B 79 */ or. r4, r3, r3
|
||||
/* 8012B988 001288C8 41 82 00 0C */ beq lbl_8012B994
|
||||
/* 8012B98C 001288CC 4B FE DF AD */ bl __ct__Q34Game10ChappyBase5ParmsFv
|
||||
/* 8012B990 001288D0 7C 64 1B 78 */ mr r4, r3
|
||||
lbl_8012B994:
|
||||
/* 8012B994 001288D4 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012B998 001288D8 48 00 3F 05 */ bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
/* 8012B99C 001288DC 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012B9A0 001288E0 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012B9A4 001288E4 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012B9A8 001288E8 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012B9AC 001288EC 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game10BlueChappy3MgrFv
|
||||
__dt__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012B9B0 001288F0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012B9B4 001288F4 7C 08 02 A6 */ mflr r0
|
||||
/* 8012B9B8 001288F8 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012B9BC 001288FC 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012B9C0 00128900 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012B9C4 00128904 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012B9C8 00128908 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012B9CC 0012890C 41 82 00 90 */ beq lbl_8012BA5C
|
||||
/* 8012B9D0 00128910 3C 60 80 4B */ lis r3, __vt__Q34Game10BlueChappy3Mgr@ha
|
||||
/* 8012B9D4 00128914 38 63 E2 B0 */ addi r3, r3, __vt__Q34Game10BlueChappy3Mgr@l
|
||||
/* 8012B9D8 00128918 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012B9DC 0012891C 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012B9E0 00128920 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012B9E4 00128924 41 82 00 68 */ beq lbl_8012BA4C
|
||||
/* 8012B9E8 00128928 3C 60 80 4B */ lis r3, __vt__Q34Game10ChappyBase3Mgr@ha
|
||||
/* 8012B9EC 0012892C 38 63 DE 18 */ addi r3, r3, __vt__Q34Game10ChappyBase3Mgr@l
|
||||
/* 8012B9F0 00128930 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012B9F4 00128934 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012B9F8 00128938 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012B9FC 0012893C 41 82 00 50 */ beq lbl_8012BA4C
|
||||
/* 8012BA00 00128940 3C 60 80 4B */ lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
/* 8012BA04 00128944 38 63 F8 A0 */ addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
/* 8012BA08 00128948 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012BA0C 0012894C 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012BA10 00128950 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012BA14 00128954 41 82 00 38 */ beq lbl_8012BA4C
|
||||
/* 8012BA18 00128958 3C 60 80 4B */ lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
/* 8012BA1C 0012895C 34 1E 00 04 */ addic. r0, r30, 4
|
||||
/* 8012BA20 00128960 38 63 AC FC */ addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
/* 8012BA24 00128964 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012BA28 00128968 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012BA2C 0012896C 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012BA30 00128970 41 82 00 1C */ beq lbl_8012BA4C
|
||||
/* 8012BA34 00128974 3C 80 80 4B */ lis r4, __vt__16GenericContainer@ha
|
||||
/* 8012BA38 00128978 38 7E 00 04 */ addi r3, r30, 4
|
||||
/* 8012BA3C 0012897C 38 04 AC DC */ addi r0, r4, __vt__16GenericContainer@l
|
||||
/* 8012BA40 00128980 38 80 00 00 */ li r4, 0
|
||||
/* 8012BA44 00128984 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012BA48 00128988 48 2E 5B 41 */ bl __dt__5CNodeFv
|
||||
lbl_8012BA4C:
|
||||
/* 8012BA4C 0012898C 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012BA50 00128990 40 81 00 0C */ ble lbl_8012BA5C
|
||||
/* 8012BA54 00128994 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012BA58 00128998 4B EF 86 5D */ bl __dl__FPv
|
||||
lbl_8012BA5C:
|
||||
/* 8012BA5C 0012899C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012BA60 001289A0 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012BA64 001289A4 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012BA68 001289A8 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012BA6C 001289AC 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012BA70 001289B0 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012BA74 001289B4 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemyTypeID__Q34Game10BlueChappy3MgrFv
|
||||
getEnemyTypeID__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012BA78 001289B8 38 60 00 2A */ li r3, 0x2a
|
||||
/* 8012BA7C 001289BC 4E 80 00 20 */ blr
|
||||
|
||||
.global getChangeTexture0__Q34Game10BlueChappy3MgrFv
|
||||
getChangeTexture0__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012BA80 001289C0 80 63 00 44 */ lwz r3, 0x44(r3)
|
||||
/* 8012BA84 001289C4 4E 80 00 20 */ blr
|
||||
|
||||
.global getChangeTexture1__Q34Game10BlueChappy3MgrFv
|
||||
getChangeTexture1__Q34Game10BlueChappy3MgrFv:
|
||||
/* 8012BA88 001289C8 80 63 00 48 */ lwz r3, 0x48(r3)
|
||||
/* 8012BA8C 001289CC 4E 80 00 20 */ blr
|
||||
|
||||
.global createObj__Q34Game10BlueChappy3MgrFi
|
||||
createObj__Q34Game10BlueChappy3MgrFi:
|
||||
/* 8012BA90 001289D0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012BA94 001289D4 7C 08 02 A6 */ mflr r0
|
||||
/* 8012BA98 001289D8 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012BA9C 001289DC 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012BAA0 001289E0 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012BAA4 001289E4 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012BAA8 001289E8 7C 7E 1B 78 */ mr r30, r3
|
||||
/* 8012BAAC 001289EC 1C 7F 02 F4 */ mulli r3, r31, 0x2f4
|
||||
/* 8012BAB0 001289F0 38 63 00 10 */ addi r3, r3, 0x10
|
||||
/* 8012BAB4 001289F4 4B EF 84 F9 */ bl __nwa__FUl
|
||||
/* 8012BAB8 001289F8 3C 80 80 13 */ lis r4, __ct__Q34Game10BlueChappy3ObjFv@ha
|
||||
/* 8012BABC 001289FC 3C A0 80 13 */ lis r5, __dt__Q34Game10BlueChappy3ObjFv@ha
|
||||
/* 8012BAC0 00128A00 38 84 BB F4 */ addi r4, r4, __ct__Q34Game10BlueChappy3ObjFv@l
|
||||
/* 8012BAC4 00128A04 7F E7 FB 78 */ mr r7, r31
|
||||
/* 8012BAC8 00128A08 38 A5 BA F0 */ addi r5, r5, __dt__Q34Game10BlueChappy3ObjFv@l
|
||||
/* 8012BACC 00128A0C 38 C0 02 F4 */ li r6, 0x2f4
|
||||
/* 8012BAD0 00128A10 4B F9 5F 21 */ bl __construct_new_array
|
||||
/* 8012BAD4 00128A14 90 7E 00 4C */ stw r3, 0x4c(r30)
|
||||
/* 8012BAD8 00128A18 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012BADC 00128A1C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012BAE0 00128A20 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012BAE4 00128A24 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012BAE8 00128A28 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012BAEC 00128A2C 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game10BlueChappy3ObjFv
|
||||
__dt__Q34Game10BlueChappy3ObjFv:
|
||||
/* 8012BAF0 00128A30 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012BAF4 00128A34 7C 08 02 A6 */ mflr r0
|
||||
/* 8012BAF8 00128A38 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012BAFC 00128A3C 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012BB00 00128A40 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012BB04 00128A44 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012BB08 00128A48 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012BB0C 00128A4C 41 82 00 B4 */ beq lbl_8012BBC0
|
||||
/* 8012BB10 00128A50 3C 60 80 4B */ lis r3, __vt__Q34Game10BlueChappy3Obj@ha
|
||||
/* 8012BB14 00128A54 38 BE 02 E4 */ addi r5, r30, 0x2e4
|
||||
/* 8012BB18 00128A58 38 83 E3 98 */ addi r4, r3, __vt__Q34Game10BlueChappy3Obj@l
|
||||
/* 8012BB1C 00128A5C 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012BB20 00128A60 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012BB24 00128A64 38 04 03 34 */ addi r0, r4, 0x334
|
||||
/* 8012BB28 00128A68 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012BB2C 00128A6C 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012BB30 00128A70 90 03 00 00 */ stw r0, 0(r3)
|
||||
/* 8012BB34 00128A74 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012BB38 00128A78 7C 03 28 50 */ subf r0, r3, r5
|
||||
/* 8012BB3C 00128A7C 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012BB40 00128A80 41 82 00 70 */ beq lbl_8012BBB0
|
||||
/* 8012BB44 00128A84 3C 60 80 4B */ lis r3, __vt__Q34Game10ChappyBase3Obj@ha
|
||||
/* 8012BB48 00128A88 38 83 DF 4C */ addi r4, r3, __vt__Q34Game10ChappyBase3Obj@l
|
||||
/* 8012BB4C 00128A8C 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012BB50 00128A90 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012BB54 00128A94 38 04 03 34 */ addi r0, r4, 0x334
|
||||
/* 8012BB58 00128A98 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012BB5C 00128A9C 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012BB60 00128AA0 90 03 00 00 */ stw r0, 0(r3)
|
||||
/* 8012BB64 00128AA4 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012BB68 00128AA8 7C 03 28 50 */ subf r0, r3, r5
|
||||
/* 8012BB6C 00128AAC 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012BB70 00128AB0 41 82 00 40 */ beq lbl_8012BBB0
|
||||
/* 8012BB74 00128AB4 3C 60 80 4B */ lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
/* 8012BB78 00128AB8 38 1E 02 BC */ addi r0, r30, 0x2bc
|
||||
/* 8012BB7C 00128ABC 38 83 A3 24 */ addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
/* 8012BB80 00128AC0 38 7E 02 90 */ addi r3, r30, 0x290
|
||||
/* 8012BB84 00128AC4 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012BB88 00128AC8 38 A4 01 B0 */ addi r5, r4, 0x1b0
|
||||
/* 8012BB8C 00128ACC 38 C4 02 F8 */ addi r6, r4, 0x2f8
|
||||
/* 8012BB90 00128AD0 38 80 FF FF */ li r4, -1
|
||||
/* 8012BB94 00128AD4 90 BE 01 78 */ stw r5, 0x178(r30)
|
||||
/* 8012BB98 00128AD8 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012BB9C 00128ADC 90 C5 00 00 */ stw r6, 0(r5)
|
||||
/* 8012BBA0 00128AE0 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012BBA4 00128AE4 7C 05 00 50 */ subf r0, r5, r0
|
||||
/* 8012BBA8 00128AE8 90 05 00 0C */ stw r0, 0xc(r5)
|
||||
/* 8012BBAC 00128AEC 48 2E 59 DD */ bl __dt__5CNodeFv
|
||||
lbl_8012BBB0:
|
||||
/* 8012BBB0 00128AF0 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012BBB4 00128AF4 40 81 00 0C */ ble lbl_8012BBC0
|
||||
/* 8012BBB8 00128AF8 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012BBBC 00128AFC 4B EF 84 F9 */ bl __dl__FPv
|
||||
lbl_8012BBC0:
|
||||
/* 8012BBC0 00128B00 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012BBC4 00128B04 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012BBC8 00128B08 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012BBCC 00128B0C 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012BBD0 00128B10 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012BBD4 00128B14 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012BBD8 00128B18 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemy__Q34Game10BlueChappy3MgrFi
|
||||
getEnemy__Q34Game10BlueChappy3MgrFi:
|
||||
/* 8012BBDC 00128B1C 1C 04 02 F4 */ mulli r0, r4, 0x2f4
|
||||
/* 8012BBE0 00128B20 80 63 00 4C */ lwz r3, 0x4c(r3)
|
||||
/* 8012BBE4 00128B24 7C 63 02 14 */ add r3, r3, r0
|
||||
/* 8012BBE8 00128B28 4E 80 00 20 */ blr
|
||||
|
||||
.global "@4@__dt__Q34Game10BlueChappy3MgrFv"
|
||||
"@4@__dt__Q34Game10BlueChappy3MgrFv":
|
||||
/* 8012BBEC 00128B2C 38 63 FF FC */ addi r3, r3, -4
|
||||
/* 8012BBF0 00128B30 4B FF FD C0 */ b __dt__Q34Game10BlueChappy3MgrFv
|
@ -1,316 +0,0 @@
|
||||
.include "macros.inc"
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.balign 8
|
||||
lbl_8047C0C0:
|
||||
.asciz "/enemy/data/BlueKochappy/kochappy_body_s3tc.3.bti"
|
||||
.balign 4
|
||||
lbl_8047C0F4: # Shift-JIS
|
||||
.4byte 0x90C28352
|
||||
.4byte 0x83608383
|
||||
.4byte 0x83628373
|
||||
.4byte 0x815B837D
|
||||
.4byte 0x836C815B
|
||||
.4byte 0x83578383
|
||||
.4byte 0x00000000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.balign 8
|
||||
.global __vt__Q34Game12BlueKochappy3Mgr
|
||||
__vt__Q34Game12BlueKochappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game12BlueKochappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game12BlueKochappy3MgrFi
|
||||
.4byte getEnemy__Q34Game12BlueKochappy3MgrFi
|
||||
.4byte doAlloc__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte createModel__Q34Game12KochappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture__Q34Game12BlueKochappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.balign 8
|
||||
"cKochappyChangeTexName__Q34Game12BlueKochappy29@unnamed@BlueKochappyMgr_cpp@":
|
||||
.4byte lbl_8047C0C0
|
||||
|
||||
.section .text, "ax" # 0x800056C0 - 0x80472F00
|
||||
.global __ct__Q34Game12BlueKochappy3MgrFiUc
|
||||
__ct__Q34Game12BlueKochappy3MgrFiUc:
|
||||
/* 8012CC1C 00129B5C 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012CC20 00129B60 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CC24 00129B64 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012CC28 00129B68 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012CC2C 00129B6C 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012CC30 00129B70 48 00 0B DD */ bl __ct__Q34Game12KochappyBase3MgrFiUc
|
||||
/* 8012CC34 00129B74 3C 60 80 4B */ lis r3, __vt__Q34Game12BlueKochappy3Mgr@ha
|
||||
/* 8012CC38 00129B78 3C 80 80 48 */ lis r4, lbl_8047C0F4@ha
|
||||
/* 8012CC3C 00129B7C 38 A3 EB B8 */ addi r5, r3, __vt__Q34Game12BlueKochappy3Mgr@l
|
||||
/* 8012CC40 00129B80 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012CC44 00129B84 90 BF 00 00 */ stw r5, 0(r31)
|
||||
/* 8012CC48 00129B88 38 A5 00 38 */ addi r5, r5, 0x38
|
||||
/* 8012CC4C 00129B8C 38 04 C0 F4 */ addi r0, r4, lbl_8047C0F4@l
|
||||
/* 8012CC50 00129B90 90 BF 00 04 */ stw r5, 4(r31)
|
||||
/* 8012CC54 00129B94 90 1F 00 18 */ stw r0, 0x18(r31)
|
||||
/* 8012CC58 00129B98 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012CC5C 00129B9C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012CC60 00129BA0 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CC64 00129BA4 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012CC68 00129BA8 4E 80 00 20 */ blr
|
||||
|
||||
.global doAlloc__Q34Game12BlueKochappy3MgrFv
|
||||
doAlloc__Q34Game12BlueKochappy3MgrFv:
|
||||
/* 8012CC6C 00129BAC 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012CC70 00129BB0 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CC74 00129BB4 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012CC78 00129BB8 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012CC7C 00129BBC 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012CC80 00129BC0 38 60 08 80 */ li r3, 0x880
|
||||
/* 8012CC84 00129BC4 4B EF 72 21 */ bl __nw__FUl
|
||||
/* 8012CC88 00129BC8 7C 64 1B 79 */ or. r4, r3, r3
|
||||
/* 8012CC8C 00129BCC 41 82 00 0C */ beq lbl_8012CC98
|
||||
/* 8012CC90 00129BD0 4B FE 57 6D */ bl __ct__Q34Game12KochappyBase5ParmsFv
|
||||
/* 8012CC94 00129BD4 7C 64 1B 78 */ mr r4, r3
|
||||
lbl_8012CC98:
|
||||
/* 8012CC98 00129BD8 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012CC9C 00129BDC 48 00 2C 01 */ bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
/* 8012CCA0 00129BE0 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012CCA4 00129BE4 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012CCA8 00129BE8 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CCAC 00129BEC 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012CCB0 00129BF0 4E 80 00 20 */ blr
|
||||
|
||||
.global loadTexData__Q34Game12BlueKochappy3MgrFv
|
||||
loadTexData__Q34Game12BlueKochappy3MgrFv:
|
||||
/* 8012CCB4 00129BF4 94 21 FF C0 */ stwu r1, -0x40(r1)
|
||||
/* 8012CCB8 00129BF8 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CCBC 00129BFC 90 01 00 44 */ stw r0, 0x44(r1)
|
||||
/* 8012CCC0 00129C00 93 E1 00 3C */ stw r31, 0x3c(r1)
|
||||
/* 8012CCC4 00129C04 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012CCC8 00129C08 38 61 00 08 */ addi r3, r1, 8
|
||||
/* 8012CCCC 00129C0C 80 8D 83 F0 */ lwz r4, "cKochappyChangeTexName__Q34Game12BlueKochappy29@unnamed@BlueKochappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012CCD0 00129C10 48 31 F9 4D */ bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
/* 8012CCD4 00129C14 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012CCD8 00129C18 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012CCDC 00129C1C 48 31 FA C5 */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012CCE0 00129C20 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012CCE4 00129C24 90 1F 00 44 */ stw r0, 0x44(r31)
|
||||
/* 8012CCE8 00129C28 80 01 00 44 */ lwz r0, 0x44(r1)
|
||||
/* 8012CCEC 00129C2C 83 E1 00 3C */ lwz r31, 0x3c(r1)
|
||||
/* 8012CCF0 00129C30 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CCF4 00129C34 38 21 00 40 */ addi r1, r1, 0x40
|
||||
/* 8012CCF8 00129C38 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game12BlueKochappy3MgrFv
|
||||
__dt__Q34Game12BlueKochappy3MgrFv:
|
||||
/* 8012CCFC 00129C3C 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012CD00 00129C40 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CD04 00129C44 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012CD08 00129C48 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012CD0C 00129C4C 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012CD10 00129C50 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012CD14 00129C54 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012CD18 00129C58 41 82 00 90 */ beq lbl_8012CDA8
|
||||
/* 8012CD1C 00129C5C 3C 60 80 4B */ lis r3, __vt__Q34Game12BlueKochappy3Mgr@ha
|
||||
/* 8012CD20 00129C60 38 63 EB B8 */ addi r3, r3, __vt__Q34Game12BlueKochappy3Mgr@l
|
||||
/* 8012CD24 00129C64 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012CD28 00129C68 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012CD2C 00129C6C 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012CD30 00129C70 41 82 00 68 */ beq lbl_8012CD98
|
||||
/* 8012CD34 00129C74 3C 60 80 4B */ lis r3, __vt__Q34Game12KochappyBase3Mgr@ha
|
||||
/* 8012CD38 00129C78 38 63 F3 F8 */ addi r3, r3, __vt__Q34Game12KochappyBase3Mgr@l
|
||||
/* 8012CD3C 00129C7C 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012CD40 00129C80 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012CD44 00129C84 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012CD48 00129C88 41 82 00 50 */ beq lbl_8012CD98
|
||||
/* 8012CD4C 00129C8C 3C 60 80 4B */ lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
/* 8012CD50 00129C90 38 63 F8 A0 */ addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
/* 8012CD54 00129C94 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012CD58 00129C98 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012CD5C 00129C9C 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012CD60 00129CA0 41 82 00 38 */ beq lbl_8012CD98
|
||||
/* 8012CD64 00129CA4 3C 60 80 4B */ lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
/* 8012CD68 00129CA8 34 1E 00 04 */ addic. r0, r30, 4
|
||||
/* 8012CD6C 00129CAC 38 63 AC FC */ addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
/* 8012CD70 00129CB0 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012CD74 00129CB4 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012CD78 00129CB8 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012CD7C 00129CBC 41 82 00 1C */ beq lbl_8012CD98
|
||||
/* 8012CD80 00129CC0 3C 80 80 4B */ lis r4, __vt__16GenericContainer@ha
|
||||
/* 8012CD84 00129CC4 38 7E 00 04 */ addi r3, r30, 4
|
||||
/* 8012CD88 00129CC8 38 04 AC DC */ addi r0, r4, __vt__16GenericContainer@l
|
||||
/* 8012CD8C 00129CCC 38 80 00 00 */ li r4, 0
|
||||
/* 8012CD90 00129CD0 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012CD94 00129CD4 48 2E 47 F5 */ bl __dt__5CNodeFv
|
||||
lbl_8012CD98:
|
||||
/* 8012CD98 00129CD8 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012CD9C 00129CDC 40 81 00 0C */ ble lbl_8012CDA8
|
||||
/* 8012CDA0 00129CE0 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012CDA4 00129CE4 4B EF 73 11 */ bl __dl__FPv
|
||||
lbl_8012CDA8:
|
||||
/* 8012CDA8 00129CE8 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012CDAC 00129CEC 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012CDB0 00129CF0 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012CDB4 00129CF4 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012CDB8 00129CF8 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CDBC 00129CFC 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012CDC0 00129D00 4E 80 00 20 */ blr
|
||||
|
||||
.global getChangeTexture__Q34Game12BlueKochappy3MgrFv
|
||||
getChangeTexture__Q34Game12BlueKochappy3MgrFv:
|
||||
/* 8012CDC4 00129D04 80 63 00 44 */ lwz r3, 0x44(r3)
|
||||
/* 8012CDC8 00129D08 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemyTypeID__Q34Game12BlueKochappy3MgrFv
|
||||
getEnemyTypeID__Q34Game12BlueKochappy3MgrFv:
|
||||
/* 8012CDCC 00129D0C 38 60 00 2C */ li r3, 0x2c
|
||||
/* 8012CDD0 00129D10 4E 80 00 20 */ blr
|
||||
|
||||
.global createObj__Q34Game12BlueKochappy3MgrFi
|
||||
createObj__Q34Game12BlueKochappy3MgrFi:
|
||||
/* 8012CDD4 00129D14 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012CDD8 00129D18 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CDDC 00129D1C 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012CDE0 00129D20 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012CDE4 00129D24 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012CDE8 00129D28 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012CDEC 00129D2C 7C 7E 1B 78 */ mr r30, r3
|
||||
/* 8012CDF0 00129D30 1C 7F 02 E8 */ mulli r3, r31, 0x2e8
|
||||
/* 8012CDF4 00129D34 38 63 00 10 */ addi r3, r3, 0x10
|
||||
/* 8012CDF8 00129D38 4B EF 71 B5 */ bl __nwa__FUl
|
||||
/* 8012CDFC 00129D3C 3C 80 80 13 */ lis r4, __ct__Q34Game12BlueKochappy3ObjFv@ha
|
||||
/* 8012CE00 00129D40 3C A0 80 13 */ lis r5, __dt__Q34Game12BlueKochappy3ObjFv@ha
|
||||
/* 8012CE04 00129D44 38 84 CF 38 */ addi r4, r4, __ct__Q34Game12BlueKochappy3ObjFv@l
|
||||
/* 8012CE08 00129D48 7F E7 FB 78 */ mr r7, r31
|
||||
/* 8012CE0C 00129D4C 38 A5 CE 34 */ addi r5, r5, __dt__Q34Game12BlueKochappy3ObjFv@l
|
||||
/* 8012CE10 00129D50 38 C0 02 E8 */ li r6, 0x2e8
|
||||
/* 8012CE14 00129D54 4B F9 4B DD */ bl __construct_new_array
|
||||
/* 8012CE18 00129D58 90 7E 00 48 */ stw r3, 0x48(r30)
|
||||
/* 8012CE1C 00129D5C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012CE20 00129D60 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012CE24 00129D64 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012CE28 00129D68 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CE2C 00129D6C 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012CE30 00129D70 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game12BlueKochappy3ObjFv
|
||||
__dt__Q34Game12BlueKochappy3ObjFv:
|
||||
/* 8012CE34 00129D74 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012CE38 00129D78 7C 08 02 A6 */ mflr r0
|
||||
/* 8012CE3C 00129D7C 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012CE40 00129D80 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012CE44 00129D84 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012CE48 00129D88 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012CE4C 00129D8C 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012CE50 00129D90 41 82 00 B4 */ beq lbl_8012CF04
|
||||
/* 8012CE54 00129D94 3C 60 80 4B */ lis r3, __vt__Q34Game12BlueKochappy3Obj@ha
|
||||
/* 8012CE58 00129D98 38 BE 02 D8 */ addi r5, r30, 0x2d8
|
||||
/* 8012CE5C 00129D9C 38 83 EC A0 */ addi r4, r3, __vt__Q34Game12BlueKochappy3Obj@l
|
||||
/* 8012CE60 00129DA0 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012CE64 00129DA4 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012CE68 00129DA8 38 04 03 08 */ addi r0, r4, 0x308
|
||||
/* 8012CE6C 00129DAC 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012CE70 00129DB0 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012CE74 00129DB4 90 03 00 00 */ stw r0, 0(r3)
|
||||
/* 8012CE78 00129DB8 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012CE7C 00129DBC 7C 03 28 50 */ subf r0, r3, r5
|
||||
/* 8012CE80 00129DC0 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012CE84 00129DC4 41 82 00 70 */ beq lbl_8012CEF4
|
||||
/* 8012CE88 00129DC8 3C 60 80 4B */ lis r3, __vt__Q34Game12KochappyBase3Obj@ha
|
||||
/* 8012CE8C 00129DCC 38 83 F4 E0 */ addi r4, r3, __vt__Q34Game12KochappyBase3Obj@l
|
||||
/* 8012CE90 00129DD0 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012CE94 00129DD4 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012CE98 00129DD8 38 04 03 08 */ addi r0, r4, 0x308
|
||||
/* 8012CE9C 00129DDC 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012CEA0 00129DE0 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012CEA4 00129DE4 90 03 00 00 */ stw r0, 0(r3)
|
||||
/* 8012CEA8 00129DE8 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012CEAC 00129DEC 7C 03 28 50 */ subf r0, r3, r5
|
||||
/* 8012CEB0 00129DF0 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012CEB4 00129DF4 41 82 00 40 */ beq lbl_8012CEF4
|
||||
/* 8012CEB8 00129DF8 3C 60 80 4B */ lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
/* 8012CEBC 00129DFC 38 1E 02 BC */ addi r0, r30, 0x2bc
|
||||
/* 8012CEC0 00129E00 38 83 A3 24 */ addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
/* 8012CEC4 00129E04 38 7E 02 90 */ addi r3, r30, 0x290
|
||||
/* 8012CEC8 00129E08 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012CECC 00129E0C 38 A4 01 B0 */ addi r5, r4, 0x1b0
|
||||
/* 8012CED0 00129E10 38 C4 02 F8 */ addi r6, r4, 0x2f8
|
||||
/* 8012CED4 00129E14 38 80 FF FF */ li r4, -1
|
||||
/* 8012CED8 00129E18 90 BE 01 78 */ stw r5, 0x178(r30)
|
||||
/* 8012CEDC 00129E1C 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012CEE0 00129E20 90 C5 00 00 */ stw r6, 0(r5)
|
||||
/* 8012CEE4 00129E24 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012CEE8 00129E28 7C 05 00 50 */ subf r0, r5, r0
|
||||
/* 8012CEEC 00129E2C 90 05 00 0C */ stw r0, 0xc(r5)
|
||||
/* 8012CEF0 00129E30 48 2E 46 99 */ bl __dt__5CNodeFv
|
||||
lbl_8012CEF4:
|
||||
/* 8012CEF4 00129E34 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012CEF8 00129E38 40 81 00 0C */ ble lbl_8012CF04
|
||||
/* 8012CEFC 00129E3C 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012CF00 00129E40 4B EF 71 B5 */ bl __dl__FPv
|
||||
lbl_8012CF04:
|
||||
/* 8012CF04 00129E44 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012CF08 00129E48 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012CF0C 00129E4C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012CF10 00129E50 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012CF14 00129E54 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012CF18 00129E58 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012CF1C 00129E5C 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemy__Q34Game12BlueKochappy3MgrFi
|
||||
getEnemy__Q34Game12BlueKochappy3MgrFi:
|
||||
/* 8012CF20 00129E60 1C 04 02 E8 */ mulli r0, r4, 0x2e8
|
||||
/* 8012CF24 00129E64 80 63 00 48 */ lwz r3, 0x48(r3)
|
||||
/* 8012CF28 00129E68 7C 63 02 14 */ add r3, r3, r0
|
||||
/* 8012CF2C 00129E6C 4E 80 00 20 */ blr
|
||||
|
||||
.global "@4@__dt__Q34Game12BlueKochappy3MgrFv"
|
||||
"@4@__dt__Q34Game12BlueKochappy3MgrFv":
|
||||
/* 8012CF30 00129E70 38 63 FF FC */ addi r3, r3, -4
|
||||
/* 8012CF34 00129E74 4B FF FD C8 */ b __dt__Q34Game12BlueKochappy3MgrFv
|
@ -1,354 +0,0 @@
|
||||
.include "macros.inc"
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.balign 8
|
||||
lbl_8047C030:
|
||||
.asciz "/enemy/data/YellowChappy/moyou_565.2.bti"
|
||||
.balign 4
|
||||
lbl_8047C05C:
|
||||
.asciz "/enemy/data/YellowChappy/swallow_565.2.bti"
|
||||
.balign 4
|
||||
lbl_8047C088: # Shift-JIS
|
||||
.4byte 0x89A98360
|
||||
.4byte 0x83838362
|
||||
.4byte 0x8373815B
|
||||
.4byte 0x837D836C
|
||||
.4byte 0x815B8357
|
||||
.4byte 0x83830000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.balign 8
|
||||
.global __vt__Q34Game12YellowChappy3Mgr
|
||||
__vt__Q34Game12YellowChappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game12YellowChappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game12YellowChappy3MgrFi
|
||||
.4byte getEnemy__Q34Game12YellowChappy3MgrFi
|
||||
.4byte doAlloc__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game12YellowChappy3MgrFv
|
||||
.4byte createModel__Q34Game10ChappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12YellowChappy3MgrFv
|
||||
.4byte loadTexData__Q34Game12YellowChappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture0__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getChangeTexture1__Q34Game12YellowChappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.balign 8
|
||||
"cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@": # local
|
||||
.4byte lbl_8047C030
|
||||
"cChappyChangeTexName1__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@": # local
|
||||
.4byte lbl_8047C05C
|
||||
|
||||
.section .text, "ax" # 0x800056C0 - 0x80472F00
|
||||
.global __ct__Q34Game12YellowChappy3MgrFiUc
|
||||
__ct__Q34Game12YellowChappy3MgrFiUc:
|
||||
/* 8012BFF0 00128F30 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012BFF4 00128F34 7C 08 02 A6 */ mflr r0
|
||||
/* 8012BFF8 00128F38 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012BFFC 00128F3C 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C000 00128F40 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012C004 00128F44 4B FF E6 6D */ bl __ct__Q34Game10ChappyBase3MgrFiUc
|
||||
/* 8012C008 00128F48 3C 80 80 4B */ lis r4, __vt__Q34Game12YellowChappy3Mgr@ha
|
||||
/* 8012C00C 00128F4C 38 7F 00 50 */ addi r3, r31, 0x50
|
||||
/* 8012C010 00128F50 38 84 E7 00 */ addi r4, r4, __vt__Q34Game12YellowChappy3Mgr@l
|
||||
/* 8012C014 00128F54 90 9F 00 00 */ stw r4, 0(r31)
|
||||
/* 8012C018 00128F58 38 04 00 38 */ addi r0, r4, 0x38
|
||||
/* 8012C01C 00128F5C 90 1F 00 04 */ stw r0, 4(r31)
|
||||
/* 8012C020 00128F60 48 00 6F F1 */ bl __ct__Q214EffectAnimator3MgrFv
|
||||
/* 8012C024 00128F64 3C 80 80 48 */ lis r4, lbl_8047C088@ha
|
||||
/* 8012C028 00128F68 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012C02C 00128F6C 38 04 C0 88 */ addi r0, r4, lbl_8047C088@l
|
||||
/* 8012C030 00128F70 90 1F 00 18 */ stw r0, 0x18(r31)
|
||||
/* 8012C034 00128F74 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C038 00128F78 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C03C 00128F7C 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C040 00128F80 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C044 00128F84 4E 80 00 20 */ blr
|
||||
|
||||
.global loadTexData__Q34Game12YellowChappy3MgrFv
|
||||
loadTexData__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C048 00128F88 94 21 FF C0 */ stwu r1, -0x40(r1)
|
||||
/* 8012C04C 00128F8C 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C050 00128F90 90 01 00 44 */ stw r0, 0x44(r1)
|
||||
/* 8012C054 00128F94 93 E1 00 3C */ stw r31, 0x3c(r1)
|
||||
/* 8012C058 00128F98 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012C05C 00128F9C 38 61 00 08 */ addi r3, r1, 8
|
||||
/* 8012C060 00128FA0 80 8D 83 E8 */ lwz r4, "cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012C064 00128FA4 48 32 05 B9 */ bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
/* 8012C068 00128FA8 80 0D 83 E8 */ lwz r0, "cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012C06C 00128FAC 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012C070 00128FB0 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012C074 00128FB4 90 01 00 08 */ stw r0, 8(r1)
|
||||
/* 8012C078 00128FB8 48 32 07 29 */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012C07C 00128FBC 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012C080 00128FC0 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012C084 00128FC4 90 1F 00 44 */ stw r0, 0x44(r31)
|
||||
/* 8012C088 00128FC8 80 0D 83 EC */ lwz r0, "cChappyChangeTexName1__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012C08C 00128FCC 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012C090 00128FD0 90 01 00 08 */ stw r0, 8(r1)
|
||||
/* 8012C094 00128FD4 48 32 07 0D */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012C098 00128FD8 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012C09C 00128FDC 90 1F 00 48 */ stw r0, 0x48(r31)
|
||||
/* 8012C0A0 00128FE0 80 01 00 44 */ lwz r0, 0x44(r1)
|
||||
/* 8012C0A4 00128FE4 83 E1 00 3C */ lwz r31, 0x3c(r1)
|
||||
/* 8012C0A8 00128FE8 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C0AC 00128FEC 38 21 00 40 */ addi r1, r1, 0x40
|
||||
/* 8012C0B0 00128FF0 4E 80 00 20 */ blr
|
||||
|
||||
.global doAlloc__Q34Game12YellowChappy3MgrFv
|
||||
doAlloc__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C0B4 00128FF4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012C0B8 00128FF8 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C0BC 00128FFC 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012C0C0 00129000 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C0C4 00129004 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012C0C8 00129008 38 60 08 84 */ li r3, 0x884
|
||||
/* 8012C0CC 0012900C 4B EF 7D D9 */ bl __nw__FUl
|
||||
/* 8012C0D0 00129010 7C 64 1B 79 */ or. r4, r3, r3
|
||||
/* 8012C0D4 00129014 41 82 00 0C */ beq lbl_8012C0E0
|
||||
/* 8012C0D8 00129018 4B FE D8 61 */ bl __ct__Q34Game10ChappyBase5ParmsFv
|
||||
/* 8012C0DC 0012901C 7C 64 1B 78 */ mr r4, r3
|
||||
lbl_8012C0E0:
|
||||
/* 8012C0E0 00129020 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012C0E4 00129024 48 00 37 B9 */ bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
/* 8012C0E8 00129028 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C0EC 0012902C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C0F0 00129030 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C0F4 00129034 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C0F8 00129038 4E 80 00 20 */ blr
|
||||
|
||||
.global loadAnimData__Q34Game12YellowChappy3MgrFv
|
||||
loadAnimData__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C0FC 0012903C 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012C100 00129040 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C104 00129044 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012C108 00129048 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C10C 0012904C 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012C110 00129050 4B FF E6 71 */ bl loadAnimData__Q34Game10ChappyBase3MgrFv
|
||||
/* 8012C114 00129054 38 7F 00 50 */ addi r3, r31, 0x50
|
||||
/* 8012C118 00129058 48 00 6F 05 */ bl setup__Q214EffectAnimator3MgrFv
|
||||
/* 8012C11C 0012905C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C120 00129060 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C124 00129064 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C128 00129068 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C12C 0012906C 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game12YellowChappy3MgrFv
|
||||
__dt__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C130 00129070 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012C134 00129074 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C138 00129078 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012C13C 0012907C 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C140 00129080 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012C144 00129084 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012C148 00129088 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012C14C 0012908C 41 82 00 90 */ beq lbl_8012C1DC
|
||||
/* 8012C150 00129090 3C 60 80 4B */ lis r3, __vt__Q34Game12YellowChappy3Mgr@ha
|
||||
/* 8012C154 00129094 38 63 E7 00 */ addi r3, r3, __vt__Q34Game12YellowChappy3Mgr@l
|
||||
/* 8012C158 00129098 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012C15C 0012909C 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012C160 001290A0 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012C164 001290A4 41 82 00 68 */ beq lbl_8012C1CC
|
||||
/* 8012C168 001290A8 3C 60 80 4B */ lis r3, __vt__Q34Game10ChappyBase3Mgr@ha
|
||||
/* 8012C16C 001290AC 38 63 DE 18 */ addi r3, r3, __vt__Q34Game10ChappyBase3Mgr@l
|
||||
/* 8012C170 001290B0 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012C174 001290B4 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012C178 001290B8 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012C17C 001290BC 41 82 00 50 */ beq lbl_8012C1CC
|
||||
/* 8012C180 001290C0 3C 60 80 4B */ lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
/* 8012C184 001290C4 38 63 F8 A0 */ addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
/* 8012C188 001290C8 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012C18C 001290CC 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012C190 001290D0 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012C194 001290D4 41 82 00 38 */ beq lbl_8012C1CC
|
||||
/* 8012C198 001290D8 3C 60 80 4B */ lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
/* 8012C19C 001290DC 34 1E 00 04 */ addic. r0, r30, 4
|
||||
/* 8012C1A0 001290E0 38 63 AC FC */ addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
/* 8012C1A4 001290E4 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012C1A8 001290E8 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012C1AC 001290EC 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012C1B0 001290F0 41 82 00 1C */ beq lbl_8012C1CC
|
||||
/* 8012C1B4 001290F4 3C 80 80 4B */ lis r4, __vt__16GenericContainer@ha
|
||||
/* 8012C1B8 001290F8 38 7E 00 04 */ addi r3, r30, 4
|
||||
/* 8012C1BC 001290FC 38 04 AC DC */ addi r0, r4, __vt__16GenericContainer@l
|
||||
/* 8012C1C0 00129100 38 80 00 00 */ li r4, 0
|
||||
/* 8012C1C4 00129104 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012C1C8 00129108 48 2E 53 C1 */ bl __dt__5CNodeFv
|
||||
lbl_8012C1CC:
|
||||
/* 8012C1CC 0012910C 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012C1D0 00129110 40 81 00 0C */ ble lbl_8012C1DC
|
||||
/* 8012C1D4 00129114 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012C1D8 00129118 4B EF 7E DD */ bl __dl__FPv
|
||||
lbl_8012C1DC:
|
||||
/* 8012C1DC 0012911C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C1E0 00129120 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012C1E4 00129124 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C1E8 00129128 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012C1EC 0012912C 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C1F0 00129130 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C1F4 00129134 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemyTypeID__Q34Game12YellowChappy3MgrFv
|
||||
getEnemyTypeID__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C1F8 00129138 38 60 00 2B */ li r3, 0x2b
|
||||
/* 8012C1FC 0012913C 4E 80 00 20 */ blr
|
||||
|
||||
.global getChangeTexture0__Q34Game12YellowChappy3MgrFv
|
||||
getChangeTexture0__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C200 00129140 80 63 00 44 */ lwz r3, 0x44(r3)
|
||||
/* 8012C204 00129144 4E 80 00 20 */ blr
|
||||
|
||||
.global getChangeTexture1__Q34Game12YellowChappy3MgrFv
|
||||
getChangeTexture1__Q34Game12YellowChappy3MgrFv:
|
||||
/* 8012C208 00129148 80 63 00 48 */ lwz r3, 0x48(r3)
|
||||
/* 8012C20C 0012914C 4E 80 00 20 */ blr
|
||||
|
||||
.global createObj__Q34Game12YellowChappy3MgrFi
|
||||
createObj__Q34Game12YellowChappy3MgrFi:
|
||||
/* 8012C210 00129150 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012C214 00129154 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C218 00129158 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012C21C 0012915C 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C220 00129160 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012C224 00129164 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012C228 00129168 7C 7E 1B 78 */ mr r30, r3
|
||||
/* 8012C22C 0012916C 1C 7F 03 00 */ mulli r3, r31, 0x300
|
||||
/* 8012C230 00129170 38 63 00 10 */ addi r3, r3, 0x10
|
||||
/* 8012C234 00129174 4B EF 7D 79 */ bl __nwa__FUl
|
||||
/* 8012C238 00129178 3C 80 80 13 */ lis r4, __ct__Q34Game12YellowChappy3ObjFv@ha
|
||||
/* 8012C23C 0012917C 3C A0 80 13 */ lis r5, __dt__Q34Game12YellowChappy3ObjFv@ha
|
||||
/* 8012C240 00129180 38 84 C3 78 */ addi r4, r4, __ct__Q34Game12YellowChappy3ObjFv@l
|
||||
/* 8012C244 00129184 7F E7 FB 78 */ mr r7, r31
|
||||
/* 8012C248 00129188 38 A5 C2 70 */ addi r5, r5, __dt__Q34Game12YellowChappy3ObjFv@l
|
||||
/* 8012C24C 0012918C 38 C0 03 00 */ li r6, 0x300
|
||||
/* 8012C250 00129190 4B F9 57 A1 */ bl __construct_new_array
|
||||
/* 8012C254 00129194 90 7E 00 4C */ stw r3, 0x4c(r30)
|
||||
/* 8012C258 00129198 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C25C 0012919C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C260 001291A0 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012C264 001291A4 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C268 001291A8 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C26C 001291AC 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game12YellowChappy3ObjFv
|
||||
__dt__Q34Game12YellowChappy3ObjFv:
|
||||
/* 8012C270 001291B0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012C274 001291B4 7C 08 02 A6 */ mflr r0
|
||||
/* 8012C278 001291B8 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012C27C 001291BC 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012C280 001291C0 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012C284 001291C4 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012C288 001291C8 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012C28C 001291CC 41 82 00 B8 */ beq lbl_8012C344
|
||||
/* 8012C290 001291D0 3C 60 80 4B */ lis r3, __vt__Q34Game12YellowChappy3Obj@ha
|
||||
/* 8012C294 001291D4 38 1E 02 F0 */ addi r0, r30, 0x2f0
|
||||
/* 8012C298 001291D8 38 83 E8 50 */ addi r4, r3, __vt__Q34Game12YellowChappy3Obj@l
|
||||
/* 8012C29C 001291DC 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012C2A0 001291E0 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012C2A4 001291E4 38 84 03 34 */ addi r4, r4, 0x334
|
||||
/* 8012C2A8 001291E8 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012C2AC 001291EC 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012C2B0 001291F0 90 83 00 00 */ stw r4, 0(r3)
|
||||
/* 8012C2B4 001291F4 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012C2B8 001291F8 7C 03 00 50 */ subf r0, r3, r0
|
||||
/* 8012C2BC 001291FC 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012C2C0 00129200 41 82 00 74 */ beq lbl_8012C334
|
||||
/* 8012C2C4 00129204 3C 60 80 4B */ lis r3, __vt__Q34Game10ChappyBase3Obj@ha
|
||||
/* 8012C2C8 00129208 38 1E 02 E4 */ addi r0, r30, 0x2e4
|
||||
/* 8012C2CC 0012920C 38 83 DF 4C */ addi r4, r3, __vt__Q34Game10ChappyBase3Obj@l
|
||||
/* 8012C2D0 00129210 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012C2D4 00129214 38 64 01 B0 */ addi r3, r4, 0x1b0
|
||||
/* 8012C2D8 00129218 38 84 03 34 */ addi r4, r4, 0x334
|
||||
/* 8012C2DC 0012921C 90 7E 01 78 */ stw r3, 0x178(r30)
|
||||
/* 8012C2E0 00129220 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012C2E4 00129224 90 83 00 00 */ stw r4, 0(r3)
|
||||
/* 8012C2E8 00129228 80 7E 01 7C */ lwz r3, 0x17c(r30)
|
||||
/* 8012C2EC 0012922C 7C 03 00 50 */ subf r0, r3, r0
|
||||
/* 8012C2F0 00129230 90 03 00 0C */ stw r0, 0xc(r3)
|
||||
/* 8012C2F4 00129234 41 82 00 40 */ beq lbl_8012C334
|
||||
/* 8012C2F8 00129238 3C 60 80 4B */ lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
/* 8012C2FC 0012923C 38 1E 02 BC */ addi r0, r30, 0x2bc
|
||||
/* 8012C300 00129240 38 83 A3 24 */ addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
/* 8012C304 00129244 38 7E 02 90 */ addi r3, r30, 0x290
|
||||
/* 8012C308 00129248 90 9E 00 00 */ stw r4, 0(r30)
|
||||
/* 8012C30C 0012924C 38 A4 01 B0 */ addi r5, r4, 0x1b0
|
||||
/* 8012C310 00129250 38 C4 02 F8 */ addi r6, r4, 0x2f8
|
||||
/* 8012C314 00129254 38 80 FF FF */ li r4, -1
|
||||
/* 8012C318 00129258 90 BE 01 78 */ stw r5, 0x178(r30)
|
||||
/* 8012C31C 0012925C 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012C320 00129260 90 C5 00 00 */ stw r6, 0(r5)
|
||||
/* 8012C324 00129264 80 BE 01 7C */ lwz r5, 0x17c(r30)
|
||||
/* 8012C328 00129268 7C 05 00 50 */ subf r0, r5, r0
|
||||
/* 8012C32C 0012926C 90 05 00 0C */ stw r0, 0xc(r5)
|
||||
/* 8012C330 00129270 48 2E 52 59 */ bl __dt__5CNodeFv
|
||||
lbl_8012C334:
|
||||
/* 8012C334 00129274 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012C338 00129278 40 81 00 0C */ ble lbl_8012C344
|
||||
/* 8012C33C 0012927C 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012C340 00129280 4B EF 7D 75 */ bl __dl__FPv
|
||||
lbl_8012C344:
|
||||
/* 8012C344 00129284 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012C348 00129288 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012C34C 0012928C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012C350 00129290 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012C354 00129294 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012C358 00129298 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012C35C 0012929C 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemy__Q34Game12YellowChappy3MgrFi
|
||||
getEnemy__Q34Game12YellowChappy3MgrFi:
|
||||
/* 8012C360 001292A0 1C 04 03 00 */ mulli r0, r4, 0x300
|
||||
/* 8012C364 001292A4 80 63 00 4C */ lwz r3, 0x4c(r3)
|
||||
/* 8012C368 001292A8 7C 63 02 14 */ add r3, r3, r0
|
||||
/* 8012C36C 001292AC 4E 80 00 20 */ blr
|
||||
|
||||
.global "@4@__dt__Q34Game12YellowChappy3MgrFv"
|
||||
"@4@__dt__Q34Game12YellowChappy3MgrFv":
|
||||
/* 8012C370 001292B0 38 63 FF FC */ addi r3, r3, -4
|
||||
/* 8012C374 001292B4 4B FF FD BC */ b __dt__Q34Game12YellowChappy3MgrFv
|
@ -1,247 +0,0 @@
|
||||
.include "macros.inc"
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.balign 8
|
||||
lbl_8047C110:
|
||||
.asciz "/enemy/data/YellowKochappy/kochappy_body_s3tc.2.bti"
|
||||
.balign 4
|
||||
lbl_8047C144: # Shift-JIS
|
||||
.4byte 0x89A98352
|
||||
.4byte 0x83608383
|
||||
.4byte 0x83628373
|
||||
.4byte 0x815B837D
|
||||
.4byte 0x836C815B
|
||||
.4byte 0x83578383
|
||||
.4byte 0x00000000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.balign 8
|
||||
.global __vt__Q34Game14YellowKochappy3Mgr
|
||||
__vt__Q34Game14YellowKochappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game14YellowKochappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game14YellowKochappy3MgrFi
|
||||
.4byte getEnemy__Q34Game14YellowKochappy3MgrFi
|
||||
.4byte doAlloc__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte createModel__Q34Game12KochappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture__Q34Game14YellowKochappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.balign 8
|
||||
"cKochappyChangeTexName__Q34Game14YellowKochappy31@unnamed@YellowKochappyMgr_cpp@": # local object
|
||||
.4byte lbl_8047C110
|
||||
|
||||
.section .text, "ax" # 0x800056C0 - 0x80472F00
|
||||
.global __ct__Q34Game14YellowKochappy3MgrFiUc
|
||||
__ct__Q34Game14YellowKochappy3MgrFiUc:
|
||||
/* 8012D5E4 0012A524 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012D5E8 0012A528 7C 08 02 A6 */ mflr r0
|
||||
/* 8012D5EC 0012A52C 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012D5F0 0012A530 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012D5F4 0012A534 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012D5F8 0012A538 48 00 02 15 */ bl __ct__Q34Game12KochappyBase3MgrFiUc
|
||||
/* 8012D5FC 0012A53C 3C 60 80 4B */ lis r3, __vt__Q34Game14YellowKochappy3Mgr@ha
|
||||
/* 8012D600 0012A540 3C 80 80 48 */ lis r4, lbl_8047C144@ha
|
||||
/* 8012D604 0012A544 38 A3 F3 10 */ addi r5, r3, __vt__Q34Game14YellowKochappy3Mgr@l
|
||||
/* 8012D608 0012A548 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012D60C 0012A54C 90 BF 00 00 */ stw r5, 0(r31)
|
||||
/* 8012D610 0012A550 38 A5 00 38 */ addi r5, r5, 0x38
|
||||
/* 8012D614 0012A554 38 04 C1 44 */ addi r0, r4, lbl_8047C144@l
|
||||
/* 8012D618 0012A558 90 BF 00 04 */ stw r5, 4(r31)
|
||||
/* 8012D61C 0012A55C 90 1F 00 18 */ stw r0, 0x18(r31)
|
||||
/* 8012D620 0012A560 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012D624 0012A564 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012D628 0012A568 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012D62C 0012A56C 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012D630 0012A570 4E 80 00 20 */ blr
|
||||
|
||||
.global doAlloc__Q34Game14YellowKochappy3MgrFv
|
||||
doAlloc__Q34Game14YellowKochappy3MgrFv:
|
||||
/* 8012D634 0012A574 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012D638 0012A578 7C 08 02 A6 */ mflr r0
|
||||
/* 8012D63C 0012A57C 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012D640 0012A580 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012D644 0012A584 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012D648 0012A588 38 60 08 80 */ li r3, 0x880
|
||||
/* 8012D64C 0012A58C 4B EF 68 59 */ bl __nw__FUl
|
||||
/* 8012D650 0012A590 7C 64 1B 79 */ or. r4, r3, r3
|
||||
/* 8012D654 0012A594 41 82 00 0C */ beq lbl_8012D660
|
||||
/* 8012D658 0012A598 4B FE 4D A5 */ bl __ct__Q34Game12KochappyBase5ParmsFv
|
||||
/* 8012D65C 0012A59C 7C 64 1B 78 */ mr r4, r3
|
||||
lbl_8012D660:
|
||||
/* 8012D660 0012A5A0 7F E3 FB 78 */ mr r3, r31
|
||||
/* 8012D664 0012A5A4 48 00 22 39 */ bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
/* 8012D668 0012A5A8 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012D66C 0012A5AC 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012D670 0012A5B0 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012D674 0012A5B4 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012D678 0012A5B8 4E 80 00 20 */ blr
|
||||
|
||||
.global loadTexData__Q34Game14YellowKochappy3MgrFv
|
||||
loadTexData__Q34Game14YellowKochappy3MgrFv:
|
||||
/* 8012D67C 0012A5BC 94 21 FF C0 */ stwu r1, -0x40(r1)
|
||||
/* 8012D680 0012A5C0 7C 08 02 A6 */ mflr r0
|
||||
/* 8012D684 0012A5C4 90 01 00 44 */ stw r0, 0x44(r1)
|
||||
/* 8012D688 0012A5C8 93 E1 00 3C */ stw r31, 0x3c(r1)
|
||||
/* 8012D68C 0012A5CC 7C 7F 1B 78 */ mr r31, r3
|
||||
/* 8012D690 0012A5D0 38 61 00 08 */ addi r3, r1, 8
|
||||
/* 8012D694 0012A5D4 80 8D 83 F8 */ lwz r4, "cKochappyChangeTexName__Q34Game14YellowKochappy31@unnamed@YellowKochappyMgr_cpp@"@sda21(r13)
|
||||
/* 8012D698 0012A5D8 48 31 EF 85 */ bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
/* 8012D69C 0012A5DC 80 6D 9C 28 */ lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
/* 8012D6A0 0012A5E0 38 81 00 08 */ addi r4, r1, 8
|
||||
/* 8012D6A4 0012A5E4 48 31 F0 FD */ bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
/* 8012D6A8 0012A5E8 80 03 00 30 */ lwz r0, 0x30(r3)
|
||||
/* 8012D6AC 0012A5EC 90 1F 00 44 */ stw r0, 0x44(r31)
|
||||
/* 8012D6B0 0012A5F0 80 01 00 44 */ lwz r0, 0x44(r1)
|
||||
/* 8012D6B4 0012A5F4 83 E1 00 3C */ lwz r31, 0x3c(r1)
|
||||
/* 8012D6B8 0012A5F8 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012D6BC 0012A5FC 38 21 00 40 */ addi r1, r1, 0x40
|
||||
/* 8012D6C0 0012A600 4E 80 00 20 */ blr
|
||||
|
||||
.global __dt__Q34Game14YellowKochappy3MgrFv
|
||||
__dt__Q34Game14YellowKochappy3MgrFv: # weak function
|
||||
/* 8012D6C4 0012A604 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012D6C8 0012A608 7C 08 02 A6 */ mflr r0
|
||||
/* 8012D6CC 0012A60C 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012D6D0 0012A610 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012D6D4 0012A614 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012D6D8 0012A618 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012D6DC 0012A61C 7C 7E 1B 79 */ or. r30, r3, r3
|
||||
/* 8012D6E0 0012A620 41 82 00 90 */ beq lbl_8012D770
|
||||
/* 8012D6E4 0012A624 3C 60 80 4B */ lis r3, __vt__Q34Game14YellowKochappy3Mgr@ha
|
||||
/* 8012D6E8 0012A628 38 63 F3 10 */ addi r3, r3, __vt__Q34Game14YellowKochappy3Mgr@l
|
||||
/* 8012D6EC 0012A62C 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012D6F0 0012A630 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012D6F4 0012A634 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012D6F8 0012A638 41 82 00 68 */ beq lbl_8012D760
|
||||
/* 8012D6FC 0012A63C 3C 60 80 4B */ lis r3, __vt__Q34Game12KochappyBase3Mgr@ha
|
||||
/* 8012D700 0012A640 38 63 F3 F8 */ addi r3, r3, __vt__Q34Game12KochappyBase3Mgr@l
|
||||
/* 8012D704 0012A644 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012D708 0012A648 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012D70C 0012A64C 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012D710 0012A650 41 82 00 50 */ beq lbl_8012D760
|
||||
/* 8012D714 0012A654 3C 60 80 4B */ lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
/* 8012D718 0012A658 38 63 F8 A0 */ addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
/* 8012D71C 0012A65C 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012D720 0012A660 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012D724 0012A664 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012D728 0012A668 41 82 00 38 */ beq lbl_8012D760
|
||||
/* 8012D72C 0012A66C 3C 60 80 4B */ lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
/* 8012D730 0012A670 34 1E 00 04 */ addic. r0, r30, 4
|
||||
/* 8012D734 0012A674 38 63 AC FC */ addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
/* 8012D738 0012A678 90 7E 00 00 */ stw r3, 0(r30)
|
||||
/* 8012D73C 0012A67C 38 03 00 38 */ addi r0, r3, 0x38
|
||||
/* 8012D740 0012A680 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012D744 0012A684 41 82 00 1C */ beq lbl_8012D760
|
||||
/* 8012D748 0012A688 3C 80 80 4B */ lis r4, __vt__16GenericContainer@ha
|
||||
/* 8012D74C 0012A68C 38 7E 00 04 */ addi r3, r30, 4
|
||||
/* 8012D750 0012A690 38 04 AC DC */ addi r0, r4, __vt__16GenericContainer@l
|
||||
/* 8012D754 0012A694 38 80 00 00 */ li r4, 0
|
||||
/* 8012D758 0012A698 90 1E 00 04 */ stw r0, 4(r30)
|
||||
/* 8012D75C 0012A69C 48 2E 3E 2D */ bl __dt__5CNodeFv
|
||||
lbl_8012D760:
|
||||
/* 8012D760 0012A6A0 7F E0 07 35 */ extsh. r0, r31
|
||||
/* 8012D764 0012A6A4 40 81 00 0C */ ble lbl_8012D770
|
||||
/* 8012D768 0012A6A8 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012D76C 0012A6AC 4B EF 69 49 */ bl __dl__FPv
|
||||
lbl_8012D770:
|
||||
/* 8012D770 0012A6B0 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012D774 0012A6B4 7F C3 F3 78 */ mr r3, r30
|
||||
/* 8012D778 0012A6B8 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012D77C 0012A6BC 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012D780 0012A6C0 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012D784 0012A6C4 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012D788 0012A6C8 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemyTypeID__Q34Game14YellowKochappy3MgrFv
|
||||
getEnemyTypeID__Q34Game14YellowKochappy3MgrFv: # weak function
|
||||
/* 8012D78C 0012A6CC 38 60 00 2D */ li r3, 0x2d
|
||||
/* 8012D790 0012A6D0 4E 80 00 20 */ blr
|
||||
|
||||
.global createObj__Q34Game14YellowKochappy3MgrFi
|
||||
createObj__Q34Game14YellowKochappy3MgrFi: # weak function
|
||||
/* 8012D794 0012A6D4 94 21 FF F0 */ stwu r1, -0x10(r1)
|
||||
/* 8012D798 0012A6D8 7C 08 02 A6 */ mflr r0
|
||||
/* 8012D79C 0012A6DC 90 01 00 14 */ stw r0, 0x14(r1)
|
||||
/* 8012D7A0 0012A6E0 93 E1 00 0C */ stw r31, 0xc(r1)
|
||||
/* 8012D7A4 0012A6E4 7C 9F 23 78 */ mr r31, r4
|
||||
/* 8012D7A8 0012A6E8 93 C1 00 08 */ stw r30, 8(r1)
|
||||
/* 8012D7AC 0012A6EC 7C 7E 1B 78 */ mr r30, r3
|
||||
/* 8012D7B0 0012A6F0 1C 7F 02 E8 */ mulli r3, r31, 0x2e8
|
||||
/* 8012D7B4 0012A6F4 38 63 00 10 */ addi r3, r3, 0x10
|
||||
/* 8012D7B8 0012A6F8 4B EF 67 F5 */ bl __nwa__FUl
|
||||
/* 8012D7BC 0012A6FC 3C 80 80 13 */ lis r4, __ct__Q34Game14YellowKochappy3ObjFv@ha
|
||||
/* 8012D7C0 0012A700 3C A0 80 13 */ lis r5, __dt__Q34Game14YellowKochappy3ObjFv@ha
|
||||
/* 8012D7C4 0012A704 38 84 D2 14 */ addi r4, r4, __ct__Q34Game14YellowKochappy3ObjFv@l
|
||||
/* 8012D7C8 0012A708 7F E7 FB 78 */ mr r7, r31
|
||||
/* 8012D7CC 0012A70C 38 A5 D4 F0 */ addi r5, r5, __dt__Q34Game14YellowKochappy3ObjFv@l
|
||||
/* 8012D7D0 0012A710 38 C0 02 E8 */ li r6, 0x2e8
|
||||
/* 8012D7D4 0012A714 4B F9 42 1D */ bl __construct_new_array
|
||||
/* 8012D7D8 0012A718 90 7E 00 48 */ stw r3, 0x48(r30)
|
||||
/* 8012D7DC 0012A71C 80 01 00 14 */ lwz r0, 0x14(r1)
|
||||
/* 8012D7E0 0012A720 83 E1 00 0C */ lwz r31, 0xc(r1)
|
||||
/* 8012D7E4 0012A724 83 C1 00 08 */ lwz r30, 8(r1)
|
||||
/* 8012D7E8 0012A728 7C 08 03 A6 */ mtlr r0
|
||||
/* 8012D7EC 0012A72C 38 21 00 10 */ addi r1, r1, 0x10
|
||||
/* 8012D7F0 0012A730 4E 80 00 20 */ blr
|
||||
|
||||
.global getEnemy__Q34Game14YellowKochappy3MgrFi
|
||||
getEnemy__Q34Game14YellowKochappy3MgrFi: # weak function
|
||||
/* 8012D7F4 0012A734 1C 04 02 E8 */ mulli r0, r4, 0x2e8
|
||||
/* 8012D7F8 0012A738 80 63 00 48 */ lwz r3, 0x48(r3)
|
||||
/* 8012D7FC 0012A73C 7C 63 02 14 */ add r3, r3, r0
|
||||
/* 8012D800 0012A740 4E 80 00 20 */ blr
|
||||
|
||||
.global "@4@__dt__Q34Game14YellowKochappy3MgrFv"
|
||||
"@4@__dt__Q34Game14YellowKochappy3MgrFv": # thunk
|
||||
/* 8012D804 0012A744 38 63 FF FC */ addi r3, r3, -4
|
||||
/* 8012D808 0012A748 4B FF FE BC */ b __dt__Q34Game14YellowKochappy3MgrFv
|
@ -233,11 +233,10 @@
|
||||
### <section id="plugProjectYamashitaU">plugProjectYamashitaU</section>
|
||||
| File | Size (bytes) | File | Size (bytes) |
|
||||
| ---- | ---- | ---- | ---- |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/YellowKochappyMgr.cpp">YellowKochappyMgr.cpp</a> | 9283 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/enemyStoneMgr.cpp">enemyStoneMgr.cpp</a> | 10296 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/BlueKochappyMgr.cpp">BlueKochappyMgr.cpp</a> | 10337 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/BlueChappyMgr.cpp">BlueChappyMgr.cpp</a> | 11168 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/YellowChappyMgr.cpp">YellowChappyMgr.cpp</a> | 11770 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/enemyStoneObj.cpp">enemyStoneObj.cpp</a> | 11997 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/enemyStoneMgr.cpp">enemyStoneMgr.cpp</a> | 10296 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/enemyStoneObj.cpp">enemyStoneObj.cpp</a> | 11997 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/farmMgr.cpp">farmMgr.cpp</a> | 12714 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/pelplant.cpp">pelplant.cpp</a> | 14266 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/farm.cpp">farm.cpp</a> | 15608 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/vtxAnm.cpp">vtxAnm.cpp</a> | 26584 |
|
||||
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/effectAnimator.cpp">effectAnimator.cpp</a> | 27586 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectYamashitaU/lifeGaugeMgr.cpp">lifeGaugeMgr.cpp</a> | 35508 |
|
||||
|
||||
### <section id="sysBootupU">sysBootupU</section>
|
||||
| File | Size (bytes) | File | Size (bytes) |
|
||||
|
@ -29,21 +29,36 @@ struct Mgr : public ChappyBase::Mgr {
|
||||
Mgr(int objLimit, u8 modelType);
|
||||
|
||||
//////////////// VTABLE
|
||||
virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void createObj(int); // _A0 (weak)
|
||||
virtual EnemyBase* getEnemy(int); // _A4 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID(); // _AC (weak)
|
||||
virtual SysShape::Model* createModel(); // _B0
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual ResTIMG* getChangeTexture0(); // _E0 (weak)
|
||||
virtual ResTIMG* getChangeTexture1(); // _E4 (weak)
|
||||
// virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID() // _AC (weak)
|
||||
{
|
||||
return EnemyTypeID::EnemyID_BlueChappy;
|
||||
}
|
||||
virtual ResTIMG* getChangeTexture0() // _E0 (weak)
|
||||
{
|
||||
return m_changeTexture0;
|
||||
}
|
||||
virtual ResTIMG* getChangeTexture1() // _E4 (weak)
|
||||
{
|
||||
return m_changeTexture1;
|
||||
}
|
||||
virtual void createObj(int count) // _A0 (weak)
|
||||
{
|
||||
m_obj = new Obj[count];
|
||||
}
|
||||
virtual EnemyBase* getEnemy(int index) // _A4 (weak)
|
||||
{
|
||||
return &m_obj[index];
|
||||
}
|
||||
//////////////// VTABLE END
|
||||
|
||||
// _00 = VTBL
|
||||
// _00-_44 = EnemyMgrBase
|
||||
u8 _44[0x8]; // _44, unknown
|
||||
Obj* m_obj; // _4C, an array of Objs
|
||||
ResTIMG* m_changeTexture0; // _44
|
||||
ResTIMG* m_changeTexture1; // _48
|
||||
Obj* m_obj; // _4C, an array of Objs
|
||||
};
|
||||
|
||||
} // namespace BlueChappy
|
||||
|
@ -29,14 +29,26 @@ struct Mgr : public KochappyBase::Mgr {
|
||||
Mgr(int objLimit, u8 modelType);
|
||||
|
||||
//////////////// VTABLE
|
||||
virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void createObj(int); // _A0 (weak)
|
||||
virtual EnemyBase* getEnemy(int); // _A4 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID(); // _AC (weak)
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual ResTIMG* getChangeTexture(); // _E0 (weak)
|
||||
//////////////// VTABLE END
|
||||
// virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual ResTIMG* getChangeTexture() // _E0 (weak)
|
||||
{
|
||||
return m_changeTexture;
|
||||
}
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID() // _AC (weak)
|
||||
{
|
||||
return EnemyTypeID::EnemyID_BlueKochappy;
|
||||
}
|
||||
virtual void createObj(int count) // _A0 (weak)
|
||||
{
|
||||
m_obj = new Obj[count];
|
||||
}
|
||||
virtual EnemyBase* getEnemy(int index) // _A4 (weak)
|
||||
{
|
||||
return &m_obj[index];
|
||||
}
|
||||
//////////////// VTABLE END
|
||||
|
||||
// _00 = VTBL
|
||||
// _00-_44 = EnemyMgrBase
|
||||
|
@ -44,12 +44,10 @@ struct Mgr : public KochappyBase::Mgr {
|
||||
{
|
||||
return &m_obj[index];
|
||||
}
|
||||
|
||||
virtual ResTIMG* getChangeTexture() // _E0 (weak)
|
||||
{
|
||||
return m_changeTexture;
|
||||
}
|
||||
|
||||
//////////////// VTABLE END
|
||||
|
||||
// _00 = VTBL
|
||||
|
@ -47,15 +47,31 @@ struct Mgr : public ChappyBase::Mgr {
|
||||
Mgr(int objLimit, u8 modelType);
|
||||
|
||||
//////////////// VTABLE
|
||||
virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void createObj(int); // _A0 (weak)
|
||||
virtual EnemyBase* getEnemy(int); // _A4 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID(); // _AC (weak)
|
||||
virtual void loadAnimData(); // _CC
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual ResTIMG* getChangeTexture0(); // _E0 (weak)
|
||||
virtual ResTIMG* getChangeTexture1(); // _E4 (weak)
|
||||
// virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual void loadAnimData(); // _CC
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID() // _AC (weak)
|
||||
{
|
||||
return EnemyTypeID::EnemyID_YellowChappy;
|
||||
}
|
||||
virtual ResTIMG* getChangeTexture0() // _E0 (weak)
|
||||
{
|
||||
return m_changeTexture0;
|
||||
}
|
||||
virtual ResTIMG* getChangeTexture1() // _E4 (weak)
|
||||
{
|
||||
return m_changeTexture1;
|
||||
}
|
||||
virtual void createObj(int count) // _A0 (weak)
|
||||
{
|
||||
m_obj = new Obj[count];
|
||||
}
|
||||
virtual EnemyBase* getEnemy(int index) // _A4 (weak)
|
||||
{
|
||||
return &m_obj[index];
|
||||
}
|
||||
|
||||
//////////////// VTABLE END
|
||||
|
||||
// _00 = VTBL
|
||||
|
@ -29,19 +29,25 @@ struct Mgr : public KochappyBase::Mgr {
|
||||
Mgr(int objLimit, u8 modelType);
|
||||
|
||||
//////////////// VTABLE
|
||||
virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void createObj(int); // _A0 (weak)
|
||||
virtual EnemyBase* getEnemy(int); // _A4 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID() // _AC (weak)
|
||||
{
|
||||
return EnemyTypeID::EnemyID_YellowKochappy;
|
||||
}
|
||||
// virtual ~Mgr() { } // _58 (weak)
|
||||
virtual void doAlloc(); // _A8
|
||||
virtual void loadTexData(); // _D0
|
||||
virtual ResTIMG* getChangeTexture() // _E0 (weak)
|
||||
{
|
||||
return m_changeTexture;
|
||||
}
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID() // _AC (weak)
|
||||
{
|
||||
return EnemyTypeID::EnemyID_YellowKochappy;
|
||||
}
|
||||
virtual void createObj(int count) // _A0 (weak)
|
||||
{
|
||||
m_obj = new Obj[count];
|
||||
}
|
||||
virtual EnemyBase* getEnemy(int index) // _A4 (weak)
|
||||
{
|
||||
return &m_obj[index];
|
||||
}
|
||||
//////////////// VTABLE END
|
||||
|
||||
// _00 = VTBL
|
||||
|
@ -461,14 +461,14 @@ YAMASHITA:=\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/walkSmokeEffect.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/ChappyBaseMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/ChappyBase.o\
|
||||
$(BUILD_DIR)/asm/plugProjectYamashitaU/BlueChappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/BlueChappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/BlueChappy.o\
|
||||
$(BUILD_DIR)/asm/plugProjectYamashitaU/YellowChappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/YellowChappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/YellowChappy.o\
|
||||
$(BUILD_DIR)/asm/plugProjectYamashitaU/BlueKochappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/BlueKochappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/BlueKochappy.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/YellowKochappy.o\
|
||||
$(BUILD_DIR)/asm/plugProjectYamashitaU/YellowKochappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/YellowKochappyMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/KochappyBaseMgr.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/KochappyBase.o\
|
||||
$(BUILD_DIR)/src/plugProjectYamashitaU/enemyBlendAnimatorBase.o\
|
||||
|
@ -1,131 +1,23 @@
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.global lbl_8047BFC0
|
||||
lbl_8047BFC0:
|
||||
.asciz "/enemy/data/BlueChappy/moyou_565.3.bti"
|
||||
.skip 1
|
||||
.global lbl_8047BFE8
|
||||
lbl_8047BFE8:
|
||||
.asciz "/enemy/data/BlueChappy/swallow_565.3.bti"
|
||||
.skip 3
|
||||
.global lbl_8047C014
|
||||
lbl_8047C014:
|
||||
.4byte 0x90C28360
|
||||
.4byte 0x83838362
|
||||
.4byte 0x8373815B
|
||||
.4byte 0x837D836C
|
||||
.4byte 0x815B8357
|
||||
.4byte 0x83830000
|
||||
.4byte 0x00000000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.global __vt__Q34Game10BlueChappy3Mgr
|
||||
__vt__Q34Game10BlueChappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game10BlueChappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game10BlueChappy3MgrFi
|
||||
.4byte getEnemy__Q34Game10BlueChappy3MgrFi
|
||||
.4byte doAlloc__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game10BlueChappy3MgrFv
|
||||
.4byte createModel__Q34Game10ChappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game10BlueChappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture0__Q34Game10BlueChappy3MgrFv
|
||||
.4byte getChangeTexture1__Q34Game10BlueChappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.global
|
||||
"cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"
|
||||
"cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@":
|
||||
.4byte lbl_8047BFC0
|
||||
.global
|
||||
"cChappyChangeTexName1__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"
|
||||
"cChappyChangeTexName1__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@":
|
||||
.4byte lbl_8047BFE8
|
||||
*/
|
||||
#include "Game/Entities/BlueChappy.h"
|
||||
#include "LoadResource.h"
|
||||
|
||||
namespace Game {
|
||||
namespace BlueChappy {
|
||||
|
||||
namespace {
|
||||
static const char* cChappyChangeTexName0 = "/enemy/data/BlueChappy/moyou_565.3.bti";
|
||||
static const char* cChappyChangeTexName1 = "/enemy/data/BlueChappy/swallow_565.3.bti";
|
||||
} // namespace
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012B8AC
|
||||
* Size: 000050
|
||||
*/
|
||||
BlueChappy::Mgr::Mgr(int, unsigned char)
|
||||
Mgr::Mgr(int objLimit, u8 modelType)
|
||||
: ChappyBase::Mgr(objLimit, modelType)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
bl __ct__Q34Game10ChappyBase3MgrFiUc
|
||||
lis r3, __vt__Q34Game10BlueChappy3Mgr@ha
|
||||
lis r4, lbl_8047C014@ha
|
||||
addi r5, r3, __vt__Q34Game10BlueChappy3Mgr@l
|
||||
mr r3, r31
|
||||
stw r5, 0(r31)
|
||||
addi r5, r5, 0x38
|
||||
addi r0, r4, lbl_8047C014@l
|
||||
stw r5, 4(r31)
|
||||
stw r0, 0x18(r31)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r0, 0x14(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
m_name = "青チャッピーマネージャ"; // blue chappy manager
|
||||
}
|
||||
|
||||
/*
|
||||
@ -133,40 +25,17 @@ BlueChappy::Mgr::Mgr(int, unsigned char)
|
||||
* Address: 8012B8FC
|
||||
* Size: 00006C
|
||||
*/
|
||||
void BlueChappy::Mgr::loadTexData()
|
||||
void Mgr::loadTexData()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stw r31, 0x3c(r1)
|
||||
mr r31, r3
|
||||
addi r3, r1, 8
|
||||
lwz r4,
|
||||
"cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
lwz r0,
|
||||
"cChappyChangeTexName0__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
addi r4, r1, 8
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
stw r0, 8(r1)
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
addi r4, r1, 8
|
||||
stw r0, 0x44(r31)
|
||||
lwz r0,
|
||||
"cChappyChangeTexName1__Q34Game10BlueChappy27@unnamed@BlueChappyMgr_cpp@"@sda21(r13)
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
stw r0, 8(r1)
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
stw r0, 0x48(r31)
|
||||
lwz r0, 0x44(r1)
|
||||
lwz r31, 0x3c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
*/
|
||||
LoadResource::ArgAramOnly loadArg(cChappyChangeTexName0);
|
||||
|
||||
loadArg._00 = cChappyChangeTexName0;
|
||||
LoadResource::Node* resource0 = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture0 = static_cast<ResTIMG*>(resource0->_30);
|
||||
|
||||
loadArg._00 = cChappyChangeTexName1;
|
||||
LoadResource::Node* resource1 = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture1 = static_cast<ResTIMG*>(resource1->_30);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -174,264 +43,7 @@ void BlueChappy::Mgr::loadTexData()
|
||||
* Address: 8012B968
|
||||
* Size: 000048
|
||||
*/
|
||||
void BlueChappy::Mgr::doAlloc()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x884
|
||||
bl __nw__FUl
|
||||
or. r4, r3, r3
|
||||
beq lbl_8012B994
|
||||
bl __ct__Q34Game10ChappyBase5ParmsFv
|
||||
mr r4, r3
|
||||
void Mgr::doAlloc() { init(new ChappyBase::Parms); }
|
||||
|
||||
lbl_8012B994:
|
||||
mr r3, r31
|
||||
bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012B9B0
|
||||
* Size: 0000C8
|
||||
*/
|
||||
BlueChappy::Mgr::~Mgr()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012BA5C
|
||||
lis r3, __vt__Q34Game10BlueChappy3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game10BlueChappy3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012BA4C
|
||||
lis r3, __vt__Q34Game10ChappyBase3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game10ChappyBase3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012BA4C
|
||||
lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012BA4C
|
||||
lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
addic. r0, r30, 4
|
||||
addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012BA4C
|
||||
lis r4, __vt__16GenericContainer@ha
|
||||
addi r3, r30, 4
|
||||
addi r0, r4, __vt__16GenericContainer@l
|
||||
li r4, 0
|
||||
stw r0, 4(r30)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012BA4C:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012BA5C
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012BA5C:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BA78
|
||||
* Size: 000008
|
||||
*/
|
||||
u32 BlueChappy::Mgr::getEnemyTypeID() { return 0x2A; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BA80
|
||||
* Size: 000008
|
||||
*/
|
||||
void BlueChappy::Mgr::getChangeTexture0()
|
||||
{
|
||||
/*
|
||||
lwz r3, 0x44(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BA88
|
||||
* Size: 000008
|
||||
*/
|
||||
void BlueChappy::Mgr::getChangeTexture1()
|
||||
{
|
||||
/*
|
||||
lwz r3, 0x48(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BA90
|
||||
* Size: 000060
|
||||
*/
|
||||
void BlueChappy::Mgr::createObj(int)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
mulli r3, r31, 0x2f4
|
||||
addi r3, r3, 0x10
|
||||
bl __nwa__FUl
|
||||
lis r4, __ct__Q34Game10BlueChappy3ObjFv@ha
|
||||
lis r5, __dt__Q34Game10BlueChappy3ObjFv@ha
|
||||
addi r4, r4, __ct__Q34Game10BlueChappy3ObjFv@l
|
||||
mr r7, r31
|
||||
addi r5, r5, __dt__Q34Game10BlueChappy3ObjFv@l
|
||||
li r6, 0x2f4
|
||||
bl __construct_new_array
|
||||
stw r3, 0x4c(r30)
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BAF0
|
||||
* Size: 0000EC
|
||||
*/
|
||||
BlueChappy::Obj::~Obj()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012BBC0
|
||||
lis r3, __vt__Q34Game10BlueChappy3Obj@ha
|
||||
addi r5, r30, 0x2e4
|
||||
addi r4, r3, __vt__Q34Game10BlueChappy3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r0, r4, 0x334
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r0, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r5
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012BBB0
|
||||
lis r3, __vt__Q34Game10ChappyBase3Obj@ha
|
||||
addi r4, r3, __vt__Q34Game10ChappyBase3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r0, r4, 0x334
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r0, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r5
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012BBB0
|
||||
lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
addi r0, r30, 0x2bc
|
||||
addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
addi r3, r30, 0x290
|
||||
stw r4, 0(r30)
|
||||
addi r5, r4, 0x1b0
|
||||
addi r6, r4, 0x2f8
|
||||
li r4, -1
|
||||
stw r5, 0x178(r30)
|
||||
lwz r5, 0x17c(r30)
|
||||
stw r6, 0(r5)
|
||||
lwz r5, 0x17c(r30)
|
||||
subf r0, r5, r0
|
||||
stw r0, 0xc(r5)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012BBB0:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012BBC0
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012BBC0:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BBDC
|
||||
* Size: 000010
|
||||
*/
|
||||
void BlueChappy::Mgr::getEnemy(int)
|
||||
{
|
||||
/*
|
||||
mulli r0, r4, 0x2f4
|
||||
lwz r3, 0x4c(r3)
|
||||
add r3, r3, r0
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BBEC
|
||||
* Size: 000008
|
||||
*/
|
||||
BlueChappy::Mgr::@4 @~Mgr()
|
||||
{
|
||||
/*
|
||||
addi r3, r3, -4
|
||||
b __dt__Q34Game10BlueChappy3MgrFv
|
||||
*/
|
||||
}
|
||||
} // namespace BlueChappy
|
||||
} // namespace Game
|
||||
|
@ -1,123 +1,22 @@
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.global lbl_8047C0C0
|
||||
lbl_8047C0C0:
|
||||
.asciz "/enemy/data/BlueKochappy/kochappy_body_s3tc.3.bti"
|
||||
.skip 2
|
||||
.global lbl_8047C0F4
|
||||
lbl_8047C0F4:
|
||||
.4byte 0x90C28352
|
||||
.4byte 0x83608383
|
||||
.4byte 0x83628373
|
||||
.4byte 0x815B837D
|
||||
.4byte 0x836C815B
|
||||
.4byte 0x83578383
|
||||
.4byte 0x00000000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.global __vt__Q34Game12BlueKochappy3Mgr
|
||||
__vt__Q34Game12BlueKochappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game12BlueKochappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game12BlueKochappy3MgrFi
|
||||
.4byte getEnemy__Q34Game12BlueKochappy3MgrFi
|
||||
.4byte doAlloc__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte createModel__Q34Game12KochappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture__Q34Game12BlueKochappy3MgrFv
|
||||
.4byte 0
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.global
|
||||
"cKochappyChangeTexName__Q34Game12BlueKochappy29@unnamed@BlueKochappyMgr_cpp@"
|
||||
"cKochappyChangeTexName__Q34Game12BlueKochappy29@unnamed@BlueKochappyMgr_cpp@":
|
||||
.4byte lbl_8047C0C0
|
||||
*/
|
||||
#include "Game/Entities/BlueKochappy.h"
|
||||
#include "LoadResource.h"
|
||||
|
||||
namespace Game {
|
||||
namespace BlueKochappy {
|
||||
|
||||
namespace {
|
||||
static const char* cKochappyChangeTexName = "/enemy/data/BlueKochappy/kochappy_body_s3tc.3.bti";
|
||||
} // namespace
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CC1C
|
||||
* Size: 000050
|
||||
*/
|
||||
BlueKochappy::Mgr::Mgr(int, unsigned char)
|
||||
Mgr::Mgr(int objLimit, u8 modelType)
|
||||
: KochappyBase::Mgr(objLimit, modelType)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
bl __ct__Q34Game12KochappyBase3MgrFiUc
|
||||
lis r3, __vt__Q34Game12BlueKochappy3Mgr@ha
|
||||
lis r4, lbl_8047C0F4@ha
|
||||
addi r5, r3, __vt__Q34Game12BlueKochappy3Mgr@l
|
||||
mr r3, r31
|
||||
stw r5, 0(r31)
|
||||
addi r5, r5, 0x38
|
||||
addi r0, r4, lbl_8047C0F4@l
|
||||
stw r5, 4(r31)
|
||||
stw r0, 0x18(r31)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r0, 0x14(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
m_name = "青コチャッピーマネージャ"; // blue kochappy manager
|
||||
}
|
||||
|
||||
/*
|
||||
@ -125,31 +24,7 @@ BlueKochappy::Mgr::Mgr(int, unsigned char)
|
||||
* Address: 8012CC6C
|
||||
* Size: 000048
|
||||
*/
|
||||
void BlueKochappy::Mgr::doAlloc()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x880
|
||||
bl __nw__FUl
|
||||
or. r4, r3, r3
|
||||
beq lbl_8012CC98
|
||||
bl __ct__Q34Game12KochappyBase5ParmsFv
|
||||
mr r4, r3
|
||||
|
||||
lbl_8012CC98:
|
||||
mr r3, r31
|
||||
bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
void Mgr::doAlloc() { init(new KochappyBase::Parms); }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
@ -158,248 +33,10 @@ lbl_8012CC98:
|
||||
*/
|
||||
void BlueKochappy::Mgr::loadTexData()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stw r31, 0x3c(r1)
|
||||
mr r31, r3
|
||||
addi r3, r1, 8
|
||||
lwz r4,
|
||||
"cKochappyChangeTexName__Q34Game12BlueKochappy29@unnamed@BlueKochappyMgr_cpp@"@sda21(r13)
|
||||
bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
addi r4, r1, 8
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
stw r0, 0x44(r31)
|
||||
lwz r0, 0x44(r1)
|
||||
lwz r31, 0x3c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
*/
|
||||
LoadResource::ArgAramOnly loadArg(cKochappyChangeTexName);
|
||||
LoadResource::Node* resource = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture = static_cast<ResTIMG*>(resource->_30);
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CCFC
|
||||
* Size: 0000C8
|
||||
*/
|
||||
BlueKochappy::Mgr::~Mgr()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012CDA8
|
||||
lis r3, __vt__Q34Game12BlueKochappy3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game12BlueKochappy3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012CD98
|
||||
lis r3, __vt__Q34Game12KochappyBase3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game12KochappyBase3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012CD98
|
||||
lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012CD98
|
||||
lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
addic. r0, r30, 4
|
||||
addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012CD98
|
||||
lis r4, __vt__16GenericContainer@ha
|
||||
addi r3, r30, 4
|
||||
addi r0, r4, __vt__16GenericContainer@l
|
||||
li r4, 0
|
||||
stw r0, 4(r30)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012CD98:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012CDA8
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012CDA8:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CDC4
|
||||
* Size: 000008
|
||||
*/
|
||||
void BlueKochappy::Mgr::getChangeTexture()
|
||||
{
|
||||
/*
|
||||
lwz r3, 0x44(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CDCC
|
||||
* Size: 000008
|
||||
*/
|
||||
u32 BlueKochappy::Mgr::getEnemyTypeID() { return 0x2C; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CDD4
|
||||
* Size: 000060
|
||||
*/
|
||||
void BlueKochappy::Mgr::createObj(int)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
mulli r3, r31, 0x2e8
|
||||
addi r3, r3, 0x10
|
||||
bl __nwa__FUl
|
||||
lis r4, __ct__Q34Game12BlueKochappy3ObjFv@ha
|
||||
lis r5, __dt__Q34Game12BlueKochappy3ObjFv@ha
|
||||
addi r4, r4, __ct__Q34Game12BlueKochappy3ObjFv@l
|
||||
mr r7, r31
|
||||
addi r5, r5, __dt__Q34Game12BlueKochappy3ObjFv@l
|
||||
li r6, 0x2e8
|
||||
bl __construct_new_array
|
||||
stw r3, 0x48(r30)
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CE34
|
||||
* Size: 0000EC
|
||||
*/
|
||||
BlueKochappy::Obj::~Obj()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012CF04
|
||||
lis r3, __vt__Q34Game12BlueKochappy3Obj@ha
|
||||
addi r5, r30, 0x2d8
|
||||
addi r4, r3, __vt__Q34Game12BlueKochappy3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r0, r4, 0x308
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r0, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r5
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012CEF4
|
||||
lis r3, __vt__Q34Game12KochappyBase3Obj@ha
|
||||
addi r4, r3, __vt__Q34Game12KochappyBase3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r0, r4, 0x308
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r0, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r5
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012CEF4
|
||||
lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
addi r0, r30, 0x2bc
|
||||
addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
addi r3, r30, 0x290
|
||||
stw r4, 0(r30)
|
||||
addi r5, r4, 0x1b0
|
||||
addi r6, r4, 0x2f8
|
||||
li r4, -1
|
||||
stw r5, 0x178(r30)
|
||||
lwz r5, 0x17c(r30)
|
||||
stw r6, 0(r5)
|
||||
lwz r5, 0x17c(r30)
|
||||
subf r0, r5, r0
|
||||
stw r0, 0xc(r5)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012CEF4:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012CF04
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012CF04:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CF20
|
||||
* Size: 000010
|
||||
*/
|
||||
void BlueKochappy::Mgr::getEnemy(int)
|
||||
{
|
||||
/*
|
||||
mulli r0, r4, 0x2e8
|
||||
lwz r3, 0x48(r3)
|
||||
add r3, r3, r0
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012CF30
|
||||
* Size: 000008
|
||||
*/
|
||||
BlueKochappy::Mgr::@4 @~Mgr()
|
||||
{
|
||||
/*
|
||||
addi r3, r3, -4
|
||||
b __dt__Q34Game12BlueKochappy3MgrFv
|
||||
*/
|
||||
}
|
||||
} // namespace BlueKochappy
|
||||
} // namespace Game
|
||||
|
@ -1,132 +1,23 @@
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.global lbl_8047C030
|
||||
lbl_8047C030:
|
||||
.asciz "/enemy/data/YellowChappy/moyou_565.2.bti"
|
||||
.skip 3
|
||||
.global lbl_8047C05C
|
||||
lbl_8047C05C:
|
||||
.asciz "/enemy/data/YellowChappy/swallow_565.2.bti"
|
||||
.skip 1
|
||||
.global lbl_8047C088
|
||||
lbl_8047C088:
|
||||
.4byte 0x89A98360
|
||||
.4byte 0x83838362
|
||||
.4byte 0x8373815B
|
||||
.4byte 0x837D836C
|
||||
.4byte 0x815B8357
|
||||
.4byte 0x83830000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.global __vt__Q34Game12YellowChappy3Mgr
|
||||
__vt__Q34Game12YellowChappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game12YellowChappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game12YellowChappy3MgrFi
|
||||
.4byte getEnemy__Q34Game12YellowChappy3MgrFi
|
||||
.4byte doAlloc__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game12YellowChappy3MgrFv
|
||||
.4byte createModel__Q34Game10ChappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game10ChappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12YellowChappy3MgrFv
|
||||
.4byte loadTexData__Q34Game12YellowChappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture0__Q34Game12YellowChappy3MgrFv
|
||||
.4byte getChangeTexture1__Q34Game12YellowChappy3MgrFv
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.global
|
||||
"cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"
|
||||
"cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@":
|
||||
.4byte lbl_8047C030
|
||||
.global
|
||||
"cChappyChangeTexName1__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"
|
||||
"cChappyChangeTexName1__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@":
|
||||
.4byte lbl_8047C05C
|
||||
*/
|
||||
#include "Game/Entities/YellowChappy.h"
|
||||
#include "LoadResource.h"
|
||||
|
||||
namespace Game {
|
||||
namespace YellowChappy {
|
||||
|
||||
namespace {
|
||||
static const char* cChappyChangeTexName0 = "/enemy/data/YellowChappy/moyou_565.2.bti";
|
||||
static const char* cChappyChangeTexName1 = "/enemy/data/YellowChappy/swallow_565.2.bti";
|
||||
} // namespace
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012BFF0
|
||||
* Size: 000058
|
||||
*/
|
||||
YellowChappy::Mgr::Mgr(int, unsigned char)
|
||||
Mgr::Mgr(int objLimit, u8 modelType)
|
||||
: ChappyBase::Mgr(objLimit, modelType)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
bl __ct__Q34Game10ChappyBase3MgrFiUc
|
||||
lis r4, __vt__Q34Game12YellowChappy3Mgr@ha
|
||||
addi r3, r31, 0x50
|
||||
addi r4, r4, __vt__Q34Game12YellowChappy3Mgr@l
|
||||
stw r4, 0(r31)
|
||||
addi r0, r4, 0x38
|
||||
stw r0, 4(r31)
|
||||
bl __ct__Q214EffectAnimator3MgrFv
|
||||
lis r4, lbl_8047C088@ha
|
||||
mr r3, r31
|
||||
addi r0, r4, lbl_8047C088@l
|
||||
stw r0, 0x18(r31)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r0, 0x14(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
m_name = "黄チャッピーマネージャ"; // yellow chappy manager
|
||||
}
|
||||
|
||||
/*
|
||||
@ -134,40 +25,17 @@ YellowChappy::Mgr::Mgr(int, unsigned char)
|
||||
* Address: 8012C048
|
||||
* Size: 00006C
|
||||
*/
|
||||
void YellowChappy::Mgr::loadTexData()
|
||||
void Mgr::loadTexData()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stw r31, 0x3c(r1)
|
||||
mr r31, r3
|
||||
addi r3, r1, 8
|
||||
lwz r4,
|
||||
"cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
lwz r0,
|
||||
"cChappyChangeTexName0__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
addi r4, r1, 8
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
stw r0, 8(r1)
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
addi r4, r1, 8
|
||||
stw r0, 0x44(r31)
|
||||
lwz r0,
|
||||
"cChappyChangeTexName1__Q34Game12YellowChappy29@unnamed@YellowChappyMgr_cpp@"@sda21(r13)
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
stw r0, 8(r1)
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
stw r0, 0x48(r31)
|
||||
lwz r0, 0x44(r1)
|
||||
lwz r31, 0x3c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
*/
|
||||
LoadResource::ArgAramOnly loadArg(cChappyChangeTexName0);
|
||||
|
||||
loadArg._00 = cChappyChangeTexName0;
|
||||
LoadResource::Node* resource0 = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture0 = static_cast<ResTIMG*>(resource0->_30);
|
||||
|
||||
loadArg._00 = cChappyChangeTexName1;
|
||||
LoadResource::Node* resource1 = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture1 = static_cast<ResTIMG*>(resource1->_30);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -175,31 +43,7 @@ void YellowChappy::Mgr::loadTexData()
|
||||
* Address: 8012C0B4
|
||||
* Size: 000048
|
||||
*/
|
||||
void YellowChappy::Mgr::doAlloc()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x884
|
||||
bl __nw__FUl
|
||||
or. r4, r3, r3
|
||||
beq lbl_8012C0E0
|
||||
bl __ct__Q34Game10ChappyBase5ParmsFv
|
||||
mr r4, r3
|
||||
|
||||
lbl_8012C0E0:
|
||||
mr r3, r31
|
||||
bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
void Mgr::doAlloc() { init(new ChappyBase::Parms); }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
@ -208,256 +52,9 @@ lbl_8012C0E0:
|
||||
*/
|
||||
void YellowChappy::Mgr::loadAnimData()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
bl loadAnimData__Q34Game10ChappyBase3MgrFv
|
||||
addi r3, r31, 0x50
|
||||
bl setup__Q214EffectAnimator3MgrFv
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
ChappyBase::Mgr::loadAnimData();
|
||||
m_effectAnimMgr.setup();
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C130
|
||||
* Size: 0000C8
|
||||
*/
|
||||
YellowChappy::Mgr::~Mgr()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012C1DC
|
||||
lis r3, __vt__Q34Game12YellowChappy3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game12YellowChappy3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012C1CC
|
||||
lis r3, __vt__Q34Game10ChappyBase3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game10ChappyBase3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012C1CC
|
||||
lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012C1CC
|
||||
lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
addic. r0, r30, 4
|
||||
addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012C1CC
|
||||
lis r4, __vt__16GenericContainer@ha
|
||||
addi r3, r30, 4
|
||||
addi r0, r4, __vt__16GenericContainer@l
|
||||
li r4, 0
|
||||
stw r0, 4(r30)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012C1CC:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012C1DC
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012C1DC:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C1F8
|
||||
* Size: 000008
|
||||
*/
|
||||
u32 YellowChappy::Mgr::getEnemyTypeID() { return 0x2B; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C200
|
||||
* Size: 000008
|
||||
*/
|
||||
void YellowChappy::Mgr::getChangeTexture0()
|
||||
{
|
||||
/*
|
||||
lwz r3, 0x44(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C208
|
||||
* Size: 000008
|
||||
*/
|
||||
void YellowChappy::Mgr::getChangeTexture1()
|
||||
{
|
||||
/*
|
||||
lwz r3, 0x48(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C210
|
||||
* Size: 000060
|
||||
*/
|
||||
void YellowChappy::Mgr::createObj(int)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
mulli r3, r31, 0x300
|
||||
addi r3, r3, 0x10
|
||||
bl __nwa__FUl
|
||||
lis r4, __ct__Q34Game12YellowChappy3ObjFv@ha
|
||||
lis r5, __dt__Q34Game12YellowChappy3ObjFv@ha
|
||||
addi r4, r4, __ct__Q34Game12YellowChappy3ObjFv@l
|
||||
mr r7, r31
|
||||
addi r5, r5, __dt__Q34Game12YellowChappy3ObjFv@l
|
||||
li r6, 0x300
|
||||
bl __construct_new_array
|
||||
stw r3, 0x4c(r30)
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C270
|
||||
* Size: 0000F0
|
||||
*/
|
||||
YellowChappy::Obj::~Obj()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012C344
|
||||
lis r3, __vt__Q34Game12YellowChappy3Obj@ha
|
||||
addi r0, r30, 0x2f0
|
||||
addi r4, r3, __vt__Q34Game12YellowChappy3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r4, r4, 0x334
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r4, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r0
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012C334
|
||||
lis r3, __vt__Q34Game10ChappyBase3Obj@ha
|
||||
addi r0, r30, 0x2e4
|
||||
addi r4, r3, __vt__Q34Game10ChappyBase3Obj@l
|
||||
stw r4, 0(r30)
|
||||
addi r3, r4, 0x1b0
|
||||
addi r4, r4, 0x334
|
||||
stw r3, 0x178(r30)
|
||||
lwz r3, 0x17c(r30)
|
||||
stw r4, 0(r3)
|
||||
lwz r3, 0x17c(r30)
|
||||
subf r0, r3, r0
|
||||
stw r0, 0xc(r3)
|
||||
beq lbl_8012C334
|
||||
lis r3, __vt__Q24Game9EnemyBase@ha
|
||||
addi r0, r30, 0x2bc
|
||||
addi r4, r3, __vt__Q24Game9EnemyBase@l
|
||||
addi r3, r30, 0x290
|
||||
stw r4, 0(r30)
|
||||
addi r5, r4, 0x1b0
|
||||
addi r6, r4, 0x2f8
|
||||
li r4, -1
|
||||
stw r5, 0x178(r30)
|
||||
lwz r5, 0x17c(r30)
|
||||
stw r6, 0(r5)
|
||||
lwz r5, 0x17c(r30)
|
||||
subf r0, r5, r0
|
||||
stw r0, 0xc(r5)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012C334:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012C344
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012C344:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C360
|
||||
* Size: 000010
|
||||
*/
|
||||
void YellowChappy::Mgr::getEnemy(int)
|
||||
{
|
||||
/*
|
||||
mulli r0, r4, 0x300
|
||||
lwz r3, 0x4c(r3)
|
||||
add r3, r3, r0
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012C370
|
||||
* Size: 000008
|
||||
*/
|
||||
YellowChappy::Mgr::@4 @~Mgr()
|
||||
{
|
||||
/*
|
||||
addi r3, r3, -4
|
||||
b __dt__Q34Game12YellowChappy3MgrFv
|
||||
*/
|
||||
}
|
||||
} // namespace YellowChappy
|
||||
} // namespace Game
|
||||
|
@ -1,141 +1,22 @@
|
||||
#include "types.h"
|
||||
|
||||
/*
|
||||
Generated from dpostproc
|
||||
|
||||
.section .rodata # 0x804732E0 - 0x8049E220
|
||||
.global lbl_8047C110
|
||||
lbl_8047C110:
|
||||
.asciz "/enemy/data/YellowKochappy/kochappy_body_s3tc.2.bti"
|
||||
.global lbl_8047C144
|
||||
lbl_8047C144:
|
||||
.4byte 0x89A98352
|
||||
.4byte 0x83608383
|
||||
.4byte 0x83628373
|
||||
.4byte 0x815B837D
|
||||
.4byte 0x836C815B
|
||||
.4byte 0x83578383
|
||||
.4byte 0x00000000
|
||||
|
||||
.section .data, "wa" # 0x8049E220 - 0x804EFC20
|
||||
.global __vt__Q34Game14YellowKochappy3Mgr
|
||||
__vt__Q34Game14YellowKochappy3Mgr:
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte doAnimation__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doEntry__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSetView__Q24Game12EnemyMgrBaseFi
|
||||
.4byte doViewCalc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte doSimulation__Q24Game12EnemyMgrBaseFf
|
||||
.4byte doDirectDraw__Q24Game12EnemyMgrBaseFR8Graphics
|
||||
.4byte doSimpleDraw__16GenericObjectMgrFP8Viewport
|
||||
.4byte loadResources__16GenericObjectMgrFv
|
||||
.4byte resetMgr__16GenericObjectMgrFv
|
||||
.4byte pausable__16GenericObjectMgrFv
|
||||
.4byte frozenable__16GenericObjectMgrFv
|
||||
.4byte getMatrixLoadType__16GenericObjectMgrFv
|
||||
.4byte 0
|
||||
.4byte 0
|
||||
.4byte "@4@__dt__Q34Game14YellowKochappy3MgrFv"
|
||||
.4byte getChildCount__5CNodeFv
|
||||
.4byte "@4@getObject__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getNext__Q24Game12EnemyMgrBaseFPv"
|
||||
.4byte "@4@getStart__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte "@4@getEnd__Q24Game12EnemyMgrBaseFv"
|
||||
.4byte __dt__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte getObject__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getNext__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte getStart__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getEnd__Q24Game12EnemyMgrBaseFv
|
||||
.4byte alloc__Q24Game12EnemyMgrBaseFv
|
||||
.4byte birth__Q24Game12EnemyMgrBaseFRQ24Game13EnemyBirthArg
|
||||
.4byte getJ3DModelData__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte getGenerator__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte killAll__Q24Game12EnemyMgrBaseFPQ24Game15CreatureKillArg
|
||||
.4byte setupSoundViewerAndBas__Q24Game12EnemyMgrBaseFv
|
||||
.4byte setDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte resetDebugParm__Q24Game12EnemyMgrBaseFUl
|
||||
.4byte getMaxObjects__Q24Game12EnemyMgrBaseCFv
|
||||
.4byte startMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte endMovie__Q24Game12EnemyMgrBaseFv
|
||||
.4byte get__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte isAlwaysMovieActor__Q24Game12EnemyMgrBaseFv
|
||||
.4byte createObj__Q34Game14YellowKochappy3MgrFi
|
||||
.4byte getEnemy__Q34Game14YellowKochappy3MgrFi
|
||||
.4byte doAlloc__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte getEnemyTypeID__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte createModel__Q34Game12KochappyBase3MgrFv
|
||||
.4byte initParms__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadResource__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initObjects__Q24Game12EnemyMgrBaseFv
|
||||
.4byte initStoneSetting__Q24Game12EnemyMgrBaseFv
|
||||
.4byte loadModelData__Q24Game12EnemyMgrBaseFP10JKRArchive
|
||||
.4byte loadModelData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadAnimData__Q34Game12KochappyBase3MgrFv
|
||||
.4byte loadTexData__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte doLoadBmd__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte doLoadBdl__Q24Game12EnemyMgrBaseFPv
|
||||
.4byte initGenerator__Q24Game12EnemyMgrBaseFv
|
||||
.4byte getChangeTexture__Q34Game14YellowKochappy3MgrFv
|
||||
.4byte 0
|
||||
|
||||
.section .sdata, "wa" # 0x80514680 - 0x80514D80
|
||||
.global
|
||||
"cKochappyChangeTexName__Q34Game14YellowKochappy31@unnamed@YellowKochappyMgr_cpp@"
|
||||
"cKochappyChangeTexName__Q34Game14YellowKochappy31@unnamed@YellowKochappyMgr_cpp@":
|
||||
.4byte lbl_8047C110
|
||||
*/
|
||||
|
||||
#include "Game/EnemyMgrBase.h"
|
||||
#include "Game/Entities/KochappyBase.h"
|
||||
#include "Game/Entities/YellowKochappy.h"
|
||||
#include "LoadResource.h"
|
||||
|
||||
namespace Game {
|
||||
|
||||
namespace YellowKochappy {
|
||||
struct Mgr : public KochappyBase::Mgr {
|
||||
Mgr(int objLimit, u8 modelType);
|
||||
virtual ~Mgr();
|
||||
|
||||
virtual void createObj(int); // _60
|
||||
virtual EnemyBase* getEnemy(int); // _64
|
||||
virtual void doAlloc(); // _68
|
||||
virtual EnemyTypeID::EEnemyTypeID getEnemyTypeID(); // _6C
|
||||
virtual void loadTexData(); // _90
|
||||
virtual unkptr getChangeTexture(); // _A0
|
||||
};
|
||||
} // namespace YellowKochappy
|
||||
namespace {
|
||||
static const char* cKochappyChangeTexName = "/enemy/data/YellowKochappy/kochappy_body_s3tc.2.bti";
|
||||
} // namespace
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D5E4
|
||||
* Size: 000050
|
||||
*/
|
||||
YellowKochappy::Mgr::Mgr(int a1, u8 a2)
|
||||
: Mgr(a1, a2)
|
||||
Mgr::Mgr(int objLimit, u8 modelType)
|
||||
: KochappyBase::Mgr(objLimit, modelType)
|
||||
{
|
||||
m_name = "黄コチャッピーマネージャ";
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
bl __ct__Q34Game12KochappyBase3MgrFiUc
|
||||
lis r3, __vt__Q34Game14YellowKochappy3Mgr@ha
|
||||
lis r4, lbl_8047C144@ha
|
||||
addi r5, r3, __vt__Q34Game14YellowKochappy3Mgr@l
|
||||
mr r3, r31
|
||||
stw r5, 0(r31)
|
||||
addi r5, r5, 0x38
|
||||
addi r0, r4, lbl_8047C144@l
|
||||
stw r5, 4(r31)
|
||||
stw r0, 0x18(r31)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r0, 0x14(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
m_name = "黄コチャッピーマネージャ"; // blue kochappy manager
|
||||
}
|
||||
|
||||
/*
|
||||
@ -143,195 +24,19 @@ YellowKochappy::Mgr::Mgr(int a1, u8 a2)
|
||||
* Address: 8012D634
|
||||
* Size: 000048
|
||||
*/
|
||||
void YellowKochappy::Mgr::doAlloc()
|
||||
{
|
||||
init(new KochappyBase::Parms());
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x880
|
||||
bl __nw__FUl
|
||||
or. r4, r3, r3
|
||||
beq lbl_8012D660
|
||||
bl __ct__Q34Game12KochappyBase5ParmsFv
|
||||
mr r4, r3
|
||||
|
||||
lbl_8012D660:
|
||||
mr r3, r31
|
||||
bl init__Q24Game12EnemyMgrBaseFPQ24Game14EnemyParmsBase
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
void Mgr::doAlloc() { init(new KochappyBase::Parms); }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D67C
|
||||
* Size: 000048
|
||||
*/
|
||||
void YellowKochappy::Mgr::loadTexData()
|
||||
void Mgr::loadTexData()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stw r31, 0x3c(r1)
|
||||
mr r31, r3
|
||||
addi r3, r1, 8
|
||||
lwz r4,
|
||||
"cKochappyChangeTexName__Q34Game14YellowKochappy31@unnamed@YellowKochappyMgr_cpp@"@sda21(r13)
|
||||
bl __ct__Q212LoadResource11ArgAramOnlyFPCc
|
||||
lwz r3, gLoadResourceMgr@sda21(r13)
|
||||
addi r4, r1, 8
|
||||
bl load__Q212LoadResource3MgrFRQ212LoadResource3Arg
|
||||
lwz r0, 0x30(r3)
|
||||
stw r0, 0x44(r31)
|
||||
lwz r0, 0x44(r1)
|
||||
lwz r31, 0x3c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
*/
|
||||
LoadResource::ArgAramOnly loadArg(cKochappyChangeTexName);
|
||||
LoadResource::Node* resource = gLoadResourceMgr->load(loadArg);
|
||||
m_changeTexture = static_cast<ResTIMG*>(resource->_30);
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D6C4
|
||||
* Size: 0000C8
|
||||
*/
|
||||
YellowKochappy::Mgr::~Mgr()
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
or. r30, r3, r3
|
||||
beq lbl_8012D770
|
||||
lis r3, __vt__Q34Game14YellowKochappy3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game14YellowKochappy3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012D760
|
||||
lis r3, __vt__Q34Game12KochappyBase3Mgr@ha
|
||||
addi r3, r3, __vt__Q34Game12KochappyBase3Mgr@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012D760
|
||||
lis r3, __vt__Q24Game12EnemyMgrBase@ha
|
||||
addi r3, r3, __vt__Q24Game12EnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012D760
|
||||
lis r3, __vt__Q24Game13IEnemyMgrBase@ha
|
||||
addic. r0, r30, 4
|
||||
addi r3, r3, __vt__Q24Game13IEnemyMgrBase@l
|
||||
stw r3, 0(r30)
|
||||
addi r0, r3, 0x38
|
||||
stw r0, 4(r30)
|
||||
beq lbl_8012D760
|
||||
lis r4, __vt__16GenericContainer@ha
|
||||
addi r3, r30, 4
|
||||
addi r0, r4, __vt__16GenericContainer@l
|
||||
li r4, 0
|
||||
stw r0, 4(r30)
|
||||
bl __dt__5CNodeFv
|
||||
|
||||
lbl_8012D760:
|
||||
extsh. r0, r31
|
||||
ble lbl_8012D770
|
||||
mr r3, r30
|
||||
bl __dl__FPv
|
||||
|
||||
lbl_8012D770:
|
||||
lwz r0, 0x14(r1)
|
||||
mr r3, r30
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D78C
|
||||
* Size: 000008
|
||||
*/
|
||||
u32 YellowKochappy::Mgr::getEnemyTypeID() { return 0x2D; }
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D794
|
||||
* Size: 000060
|
||||
*/
|
||||
void YellowKochappy::Mgr::createObj(int)
|
||||
{
|
||||
/*
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
mulli r3, r31, 0x2e8
|
||||
addi r3, r3, 0x10
|
||||
bl __nwa__FUl
|
||||
lis r4, __ct__Q34Game14YellowKochappy3ObjFv@ha
|
||||
lis r5, __dt__Q34Game14YellowKochappy3ObjFv@ha
|
||||
addi r4, r4, __ct__Q34Game14YellowKochappy3ObjFv@l
|
||||
mr r7, r31
|
||||
addi r5, r5, __dt__Q34Game14YellowKochappy3ObjFv@l
|
||||
li r6, 0x2e8
|
||||
bl __construct_new_array
|
||||
stw r3, 0x48(r30)
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D7F4
|
||||
* Size: 000010
|
||||
*/
|
||||
void YellowKochappy::Mgr::getEnemy(int)
|
||||
{
|
||||
/*
|
||||
mulli r0, r4, 0x2e8
|
||||
lwz r3, 0x48(r3)
|
||||
add r3, r3, r0
|
||||
blr
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* --INFO--
|
||||
* Address: 8012D804
|
||||
* Size: 000008
|
||||
*/
|
||||
YellowKochappy::Mgr::@4 @~Mgr()
|
||||
{
|
||||
/*
|
||||
addi r3, r3, -4
|
||||
b __dt__Q34Game14YellowKochappy3MgrFv
|
||||
*/
|
||||
}
|
||||
} // namespace YellowKochappy
|
||||
} // namespace Game
|
||||
|
@ -27,7 +27,7 @@ Mgr::Mgr(int objLimit, u8 modelType)
|
||||
* Address: 80119884
|
||||
* Size: 00006C
|
||||
*/
|
||||
void Chappy::Mgr::loadTexData()
|
||||
void Mgr::loadTexData()
|
||||
{
|
||||
LoadResource::ArgAramOnly loadArg(cChappyChangeTexName0);
|
||||
|
||||
|
@ -153,3 +153,5 @@ You have 622 out of 10000 Pokos and 22 out of 201 treasures.",2022-10-20 18:36:0
|
||||
You have 626 out of 10000 Pokos and 23 out of 201 treasures.",2022-10-20 20:06:20.443747
|
||||
665,309560,0.06653838746509293,27,96737,0.13570342397342522,"
|
||||
You have 665 out of 10000 Pokos and 27 out of 201 treasures.",2022-10-20 21:42:45.116685
|
||||
672,312652,0.06720299753758958,27,98043,0.1375354910388634,"
|
||||
You have 672 out of 10000 Pokos and 27 out of 201 treasures.",2022-10-20 22:23:17.413592
|
||||
|
|
Loading…
Reference in New Issue
Block a user