mirror of
https://github.com/zeldaret/tmc
synced 2026-07-02 20:46:44 -04:00
Put const data in clothesRack
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user