mirror of https://github.com/zeldaret/tmc.git
Put const data in minishLight
This commit is contained in:
parent
e2c87fb9ca
commit
b703cced65
|
@ -1,9 +0,0 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_081247F8:: @ 081247F8
|
||||
.4byte sub_0809F840
|
||||
.4byte sub_0809F868
|
|
@ -1532,7 +1532,7 @@ SECTIONS {
|
|||
src/object/objectA2.o(.rodata);
|
||||
data/animations/object/objectA2.o(.rodata);
|
||||
src/object/cloud.o(.rodata);
|
||||
data/const/object/minishLight.o(.rodata);
|
||||
src/object/minishLight.o(.rodata);
|
||||
src/object/objectA6.o(.rodata);
|
||||
data/animations/object/objectA6.o(.rodata);
|
||||
src/object/objectA8.o(.rodata);
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
#include "entity.h"
|
||||
|
||||
extern void (*const gUnk_081247F8[])(Entity*);
|
||||
void sub_0809F840(Entity*);
|
||||
void sub_0809F868(Entity*);
|
||||
|
||||
void MinishLight(Entity* this) {
|
||||
gUnk_081247F8[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_0809F840,
|
||||
sub_0809F868,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0809F840(Entity* this) {
|
||||
|
|
Loading…
Reference in New Issue