mirror of https://github.com/zeldaret/tmc.git
Put const data in clothesRack
This commit is contained in:
parent
b3900c84e0
commit
08211a573a
|
|
@ -1,9 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_0811423C:: @ 0811423C
|
||||
.4byte sub_0806DD90
|
||||
.4byte sub_0806DEC8
|
||||
|
|
@ -1287,7 +1287,7 @@ SECTIONS {
|
|||
src/npc/npc4E.o(.rodata);
|
||||
src/npc/npc4F.o(.rodata);
|
||||
data/animations/npc/npc4F.o(.rodata);
|
||||
data/const/npc/clothesRack.o(.rodata);
|
||||
src/npc/clothesRack.o(.rodata);
|
||||
data/animations/npc/clothesRack.o(.rodata);
|
||||
src/npc/picolyteBottle.o(.rodata);
|
||||
data/const/npc/smallTownMinish.o(.rodata);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
#include "npc.h"
|
||||
|
||||
extern void (*gUnk_0811423C[])(Entity*);
|
||||
void sub_0806DD90(Entity*);
|
||||
void sub_0806DEC8(Entity*);
|
||||
|
||||
void ClothesRack(Entity* this) {
|
||||
gUnk_0811423C[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0806DD90,
|
||||
sub_0806DEC8,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0806DD90(Entity* this) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue