Put const data in clothesRack

This commit is contained in:
Tal Hayon 2022-04-16 14:10:32 +03:00
parent b3900c84e0
commit 08211a573a
3 changed files with 8 additions and 12 deletions

View File

@ -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

View File

@ -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);

View File

@ -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) {