mirror of
https://github.com/zeldaret/tmc
synced 2026-05-31 01:16:04 -04:00
Put const data into festari
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_08109BBC:: @ 08109BBC
|
||||
.4byte sub_0805FE10
|
||||
.4byte sub_0805FE48
|
||||
.4byte sub_0805FF18
|
||||
@@ -1151,7 +1151,7 @@ SECTIONS {
|
||||
data/data_08108E6C.o(.rodata);
|
||||
src/playerItem/playerItemSpiralBeam.o(.rodata);
|
||||
data/animations/npc/gentari.o(.rodata);
|
||||
data/const/npc/festari.o(.rodata);
|
||||
src/npc/festari.o(.rodata);
|
||||
data/animations/npc/festari.o(.rodata);
|
||||
data/const/npc/forestMinish.o(.rodata);
|
||||
data/animations/npc/forestMinish.o(.rodata);
|
||||
|
||||
+10
-4
@@ -3,12 +3,18 @@
|
||||
#include "functions.h"
|
||||
#include "npc.h"
|
||||
|
||||
extern void sub_0805FF2C(Entity*, ScriptExecutionContext*);
|
||||
|
||||
extern void (*const gUnk_08109BBC[])(Entity*);
|
||||
void sub_0805FF2C(Entity*, ScriptExecutionContext*);
|
||||
void sub_0805FE10(Entity* this);
|
||||
void sub_0805FE48(Entity* this);
|
||||
void sub_0805FF18(Entity* this);
|
||||
|
||||
void Festari(Entity* this) {
|
||||
gUnk_08109BBC[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0805FE10,
|
||||
sub_0805FE48,
|
||||
sub_0805FF18,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0805FE10(Entity* this) {
|
||||
|
||||
Reference in New Issue
Block a user