Skip to content

Commit

Permalink
(banim-efxbattle) Minor renames
Browse files Browse the repository at this point in the history
  • Loading branch information
Eebit committed Mar 24, 2024
1 parent e157090 commit 76e2ecb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
8 changes: 4 additions & 4 deletions include/efxbattle.h
Original file line number Diff line number Diff line change
Expand Up @@ -2547,13 +2547,13 @@ struct EfxQuakeProc
};

ProcPtr NewEfxQuakePure(int, int);
void sub_80536B8(struct EfxQuakeProc * proc);
void efxQuakePure_Loop(struct EfxQuakeProc * proc);
ProcPtr NewEfxHitQuakePure(void);
void nullsub_56(void);
void efxHitQuakePure_Loop_Null(void);
ProcPtr NewEfxQuake(int);
void sub_805382C(struct EfxQuakeProc * proc);
void efxQuake_Loop(struct EfxQuakeProc * proc);
void NewEfxHitQuake(struct Anim * anim1, struct Anim * anim2, int kind);
void sub_8053BBC(struct EfxQuakeProc * proc);
void efxHitQuake_Loop(struct EfxQuakeProc * proc);

void NewEfxFlashBgWhite(struct Anim * anim, int duartion);
void NewEfxFlashBgRed(struct Anim * anim, int duartion);
Expand Down
6 changes: 3 additions & 3 deletions include/ekrbattle.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ extern struct ProcCmd ProcScr_efxDeadPika[];
extern struct ProcCmd ProcScr_efxDeadAlpha[];
extern struct ProcCmd ProcScr_efxDeadDragonAlpha[];
extern struct ProcCmd gProc_efxFarAttack[];
extern struct ProcCmd gProc_efxQuakePure[];
extern struct ProcCmd ProcScr_efxQuakePure[];
// extern ??? gUnknown_085B9804
extern struct ProcCmd ProcScr_EfxHitQuakePure[];
extern struct ProcCmd gProc_efxQuake[];
extern struct ProcCmd ProcScr_efxQuake[];
extern struct ProcCmd ProcScr_EfxHitQuake[];
extern struct ProcCmd ProcScr_efxFlashBG[];
extern struct ProcCmd ProcScr_efxWhiteOUT[];
Expand Down Expand Up @@ -986,7 +986,7 @@ void sub_805AA28(struct AnimBuffer * pAnimBuf);
// void sub_805AA68(void *);
// void sub_805AE14(void *);
// void sub_805AE40(void *, s16, s16, s16, s16);
// ??? sub_805AE58(???);
void sub_805AE58(void *);
void sub_805AFA0(int, s16);

struct ProcEkrTogi
Expand Down
26 changes: 12 additions & 14 deletions src/banim-efxbattle.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,10 +753,10 @@ const s16 gUnknown_080DAA8E[] =
INT16_MAX,
};

struct ProcCmd CONST_DATA gProc_efxQuakePure[] =
struct ProcCmd CONST_DATA ProcScr_efxQuakePure[] =
{
PROC_NAME("efxQuakePure"),
PROC_REPEAT(sub_80536B8),
PROC_REPEAT(efxQuakePure_Loop),
PROC_END,
};

Expand Down Expand Up @@ -786,7 +786,7 @@ const void * CONST_DATA gUnknown_085B9804[] =
//! FE8U = 0x08053678
ProcPtr NewEfxQuakePure(int index, int kind)
{
struct EfxQuakeProc * proc = Proc_Start(gProc_efxQuakePure, PROC_TREE_3);
struct EfxQuakeProc * proc = Proc_Start(ProcScr_efxQuakePure, PROC_TREE_3);

proc->unk_44 = (s16 *)gUnknown_085B9804[index * 2];
proc->unk_29 = (int)gUnknown_085B9804[index * 2 + 1];
Expand All @@ -798,7 +798,7 @@ ProcPtr NewEfxQuakePure(int index, int kind)
}

//! FE8U = 0x080536B8
void sub_80536B8(struct EfxQuakeProc * proc)
void efxQuakePure_Loop(struct EfxQuakeProc * proc)
{
const s16 * vec = proc->unk_44;

Expand Down Expand Up @@ -830,7 +830,7 @@ void sub_80536B8(struct EfxQuakeProc * proc)
struct ProcCmd CONST_DATA ProcScr_EfxHitQuakePure[] =
{
PROC_NAME("efxHitQuakePure"),
PROC_REPEAT(nullsub_56),
PROC_REPEAT(efxHitQuakePure_Loop_Null),
PROC_END,
};

Expand All @@ -843,17 +843,17 @@ ProcPtr NewEfxHitQuakePure(void)
}

//! FE8U = 0x0805372C
void nullsub_56(void)
void efxHitQuakePure_Loop_Null(void)
{
return;
}

// clang-format off

struct ProcCmd CONST_DATA gProc_efxQuake[] =
struct ProcCmd CONST_DATA ProcScr_efxQuake[] =
{
PROC_NAME("efxQuake"),
PROC_REPEAT(sub_805382C),
PROC_REPEAT(efxQuake_Loop),
PROC_END,
};

Expand All @@ -870,7 +870,7 @@ ProcPtr NewEfxQuake(int kind)
}

gUnknown_0201773C = 1;
proc = Proc_Start(gProc_efxQuake, PROC_TREE_3);
proc = Proc_Start(ProcScr_efxQuake, PROC_TREE_3);

proc->unk_2c = 0;

Expand Down Expand Up @@ -935,7 +935,7 @@ ProcPtr NewEfxQuake(int kind)
}

//! FE8U = 0x0805382C
void sub_805382C(struct EfxQuakeProc * proc)
void efxQuake_Loop(struct EfxQuakeProc * proc)
{
int x1;
int y1;
Expand Down Expand Up @@ -1021,7 +1021,7 @@ void sub_805382C(struct EfxQuakeProc * proc)
struct ProcCmd CONST_DATA ProcScr_EfxHitQuake[] =
{
PROC_NAME("efxHitQuake"),
PROC_REPEAT(sub_8053BBC),
PROC_REPEAT(efxHitQuake_Loop),
PROC_END,
};

Expand Down Expand Up @@ -1142,10 +1142,8 @@ void NewEfxHitQuake(struct Anim * anim1, struct Anim * anim2, int kind)
return;
}

void sub_805AE58(void *);

//! FE8U = 0x08053BBC
void sub_8053BBC(struct EfxQuakeProc * proc)
void efxHitQuake_Loop(struct EfxQuakeProc * proc)
{
int x1;
int y1;
Expand Down

0 comments on commit 76e2ecb

Please sign in to comment.