mirror of https://github.com/zeldaret/tmc.git
Put const data in palaceArchway
This commit is contained in:
parent
dffed21613
commit
ad2a1ebbdf
|
|
@ -1,9 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_081246EC:: @ 081246EC
|
||||
.4byte sub_0809F2A0
|
||||
.4byte nullsub_537
|
||||
|
|
@ -1528,7 +1528,7 @@ SECTIONS {
|
|||
data/animations/object/fan.o(.rodata);
|
||||
src/object/angryStatue.o(.rodata);
|
||||
data/animations/object/angryStatue.o(.rodata);
|
||||
data/const/object/palaceArchway.o(.rodata);
|
||||
src/object/palaceArchway.o(.rodata);
|
||||
src/object/objectA2.o(.rodata);
|
||||
data/animations/object/objectA2.o(.rodata);
|
||||
data/const/object/cloud.o(.rodata);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
#include "object.h"
|
||||
|
||||
extern void (*const gUnk_081246EC[])(Entity*);
|
||||
void sub_0809F2A0(Entity*);
|
||||
void nullsub_537(Entity*);
|
||||
|
||||
void PalaceArchway(Entity* this) {
|
||||
gUnk_081246EC[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0809F2A0,
|
||||
nullsub_537,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0809F2A0(Entity* this) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue