mirror of
https://github.com/zeldaret/tmc
synced 2026-06-15 06:31:12 -04:00
Put const data in bell
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_08123384:: @ 08123384
|
||||
.4byte sub_08097D90
|
||||
.4byte sub_08097DCC
|
||||
@@ -1473,7 +1473,7 @@ SECTIONS {
|
||||
src/object/stoneTablet.o(.rodata);
|
||||
src/object/lilypadSmall.o(.rodata);
|
||||
src/object/object74.o(.rodata);
|
||||
data/const/object/bell.o(.rodata);
|
||||
src/object/bell.o(.rodata);
|
||||
data/animations/object/bell.o(.rodata);
|
||||
src/object/macroDecorations.o(.rodata);
|
||||
src/object/object79.o(.rodata);
|
||||
|
||||
+7
-2
@@ -1,9 +1,14 @@
|
||||
#include "object.h"
|
||||
|
||||
extern void (*gUnk_08123384[])(Entity*);
|
||||
void sub_08097D90(Entity*);
|
||||
void sub_08097DCC(Entity*);
|
||||
|
||||
void Bell(Entity* ent) {
|
||||
gUnk_08123384[ent->action](ent);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_08097D90,
|
||||
sub_08097DCC,
|
||||
};
|
||||
actionFuncs[ent->action](ent);
|
||||
}
|
||||
|
||||
void sub_08097D90(Entity* ent) {
|
||||
|
||||
Reference in New Issue
Block a user