Skip to content

Commit

Permalink
Match ftCo_DemoCallback0 (96 bytes) (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribbanya authored Nov 22, 2023
1 parent e9b7ea4 commit 62e7b6a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 32 deletions.
31 changes: 0 additions & 31 deletions asm/melee/ft/ft_0C31.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,6 @@

.section .text

.global ftCo_800C6150
ftCo_800C6150:
/* 800C6150 000C2D30 7C 08 02 A6 */ mflr r0
/* 800C6154 000C2D34 38 80 00 0C */ li r4, 0xc
/* 800C6158 000C2D38 90 01 00 04 */ stw r0, 4(r1)
/* 800C615C 000C2D3C 38 A0 00 00 */ li r5, 0
/* 800C6160 000C2D40 38 C0 00 00 */ li r6, 0
/* 800C6164 000C2D44 94 21 FF E8 */ stwu r1, -0x18(r1)
/* 800C6168 000C2D48 93 E1 00 14 */ stw r31, 0x14(r1)
/* 800C616C 000C2D4C C0 22 93 E0 */ lfs f1, ftCo_804D8DC0@sda21(r2)
/* 800C6170 000C2D50 83 E3 00 2C */ lwz r31, 0x2c(r3)
/* 800C6174 000C2D54 FC 60 08 90 */ fmr f3, f1
/* 800C6178 000C2D58 C0 42 93 E4 */ lfs f2, ftCo_804D8DC4@sda21(r2)
/* 800C617C 000C2D5C 4B FA 32 31 */ bl Fighter_ChangeMotionState
/* 800C6180 000C2D60 88 1F 22 19 */ lbz r0, 0x2219(r31)
/* 800C6184 000C2D64 38 60 00 01 */ li r3, 1
/* 800C6188 000C2D68 50 60 2E B4 */ rlwimi r0, r3, 5, 0x1a, 0x1a
/* 800C618C 000C2D6C 98 1F 22 19 */ stb r0, 0x2219(r31)
/* 800C6190 000C2D70 88 1F 22 19 */ lbz r0, 0x2219(r31)
/* 800C6194 000C2D74 50 60 36 72 */ rlwimi r0, r3, 6, 0x19, 0x19
/* 800C6198 000C2D78 98 1F 22 19 */ stb r0, 0x2219(r31)
/* 800C619C 000C2D7C 80 01 00 1C */ lwz r0, 0x1c(r1)
/* 800C61A0 000C2D80 83 E1 00 14 */ lwz r31, 0x14(r1)
/* 800C61A4 000C2D84 38 21 00 18 */ addi r1, r1, 0x18
/* 800C61A8 000C2D88 7C 08 03 A6 */ mtlr r0
/* 800C61AC 000C2D8C 4E 80 00 20 */ blr

.global ftCo_800C61B0
ftCo_800C61B0:
/* 800C61B0 000C2D90 7C 08 02 A6 */ mflr r0
Expand Down Expand Up @@ -2369,10 +2342,6 @@ ftCo_804D3C88:

.section .sdata2
.balign 8
ftCo_804D8DC0:
.4byte NULL
ftCo_804D8DC4:
.float 1
ftCo_804D8DC8:
.4byte NULL
ftCo_804D8DCC:
Expand Down
1 change: 1 addition & 0 deletions obj_files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ TEXT_O_FILES +=\
$(BUILD_DIR)/src/melee/ft/chara/ftCommon/ftCo_HammerFall.c.o\
$(BUILD_DIR)/src/melee/ft/chara/ftCommon/ftCo_HammerLanding.c.o\
$(BUILD_DIR)/src/melee/ft/chara/ftCommon/ftCo_0C60.c.o\
$(BUILD_DIR)/src/melee/ft/chara/ftCommon/ftCo_DemoCallback0.c.o\
$(BUILD_DIR)/asm/melee/ft/ft_0C31.s.o\
$(BUILD_DIR)/asm/melee/ft/ftmetal.s.o\
$(BUILD_DIR)/asm/melee/ft/ft_0C88.s.o\
Expand Down
15 changes: 15 additions & 0 deletions src/melee/ft/chara/ftCommon/ftCo_DemoCallback0.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "ft/forward.h"
#include "ftCommon/forward.h"

#include "ftCo_DemoCallback0.h"

#include "ft/fighter.h"

void ftCo_800C6150(ftCo_GObj* gobj)
{
Fighter* fp = GET_FIGHTER(gobj);
Fighter_ChangeMotionState(gobj, ftCo_MS_Rebirth, Ft_MF_None, 0, 1, 0,
NULL);
fp->x2219_b2 = true;
fp->x2219_b1 = true;
}
8 changes: 8 additions & 0 deletions src/melee/ft/chara/ftCommon/ftCo_DemoCallback0.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef GALE01_0C6150
#define GALE01_0C6150

#include "ftCommon/forward.h"

/* 0C6150 */ void ftCo_800C6150(ftCo_GObj* gobj);

#endif
1 change: 0 additions & 1 deletion src/melee/ft/ft_0C31.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <placeholder.h>

/* 0C6150 */ void ftCo_800C6150(ftCo_GObj* gobj);
/* 0C61B0 */ void ftCo_800C61B0(ftCo_GObj* gobj);
/* 0C6370 */ void ftCo_Entry_Anim(ftCo_GObj* gobj);
/* 0C63B4 */ void ftCo_Entry_IASA(ftCo_GObj* gobj);
Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/ftdemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "ftCommon/ftCo_09CB.h"
#include "ftCommon/ftCo_09F4.h"
#include "ftCommon/ftCo_Init.h"
#include "ftCommon/ftCo_DemoCallback0.h"
#include "lb/lbshadow.h"

#include <math.h>
Expand Down

0 comments on commit 62e7b6a

Please sign in to comment.