mirror of https://github.com/zeldaret/tmc.git
Put const data in bakerOven
This commit is contained in:
parent
24b936f2fb
commit
017b419abd
|
|
@ -1,10 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_08123E20:: @ 08123E20
|
||||
.4byte sub_0809CC74
|
||||
.4byte sub_0809CD0C
|
||||
.4byte sub_0809CDB4
|
||||
|
|
@ -1509,7 +1509,7 @@ SECTIONS {
|
|||
src/object/frozenWaterElement.o(.rodata);
|
||||
src/object/object90.o(.rodata);
|
||||
src/object/frozenOctorok.o(.rodata);
|
||||
data/const/object/bakerOven.o(.rodata);
|
||||
src/object/bakerOven.o(.rodata);
|
||||
data/animations/object/bakerOven.o(.rodata);
|
||||
src/object/lamp.o(.rodata);
|
||||
data/animations/object/lamp.o(.rodata);
|
||||
|
|
|
|||
|
|
@ -2,12 +2,18 @@
|
|||
#include "functions.h"
|
||||
|
||||
extern void SoundReqClipped(Entity*, u32);
|
||||
extern void sub_0809CDF0(Entity*);
|
||||
|
||||
extern void (*const gUnk_08123E20[])(Entity*);
|
||||
void sub_0809CDF0(Entity*);
|
||||
void sub_0809CC74(Entity*);
|
||||
void sub_0809CD0C(Entity*);
|
||||
void sub_0809CDB4(Entity*);
|
||||
|
||||
void BakerOven(Entity* this) {
|
||||
gUnk_08123E20[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0809CC74,
|
||||
sub_0809CD0C,
|
||||
sub_0809CDB4,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0809CC74(Entity* this) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue