mirror of
https://github.com/zeldaret/tmc
synced 2026-06-03 18:36:43 -04:00
Put const data in object86
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
gUnk_081237F8:: @ 081237F8
|
||||
.4byte sub_08099DD0
|
||||
.4byte sub_08099E10
|
||||
.4byte sub_08099E58
|
||||
.4byte sub_08099E8C
|
||||
.4byte nullsub_534
|
||||
@@ -1495,7 +1495,7 @@ SECTIONS {
|
||||
data/animations/object/smallIceBlock.o(.rodata);
|
||||
src/object/bigIceBlock.o(.rodata);
|
||||
data/animations/object/bigIceBlock.o(.rodata);
|
||||
data/const/object/object86.o(.rodata);
|
||||
src/object/object86.o(.rodata);
|
||||
data/animations/object/object86.o(.rodata);
|
||||
src/object/octorokBossObject.o(.rodata);
|
||||
src/object/macroBook.o(.rodata);
|
||||
|
||||
@@ -2,12 +2,18 @@
|
||||
#include "item.h"
|
||||
|
||||
void sub_08099ECC(Entity*);
|
||||
void sub_08099DD0(Entity*);
|
||||
void sub_08099E10(Entity*);
|
||||
void sub_08099E58(Entity*);
|
||||
void sub_08099E8C(Entity*);
|
||||
void nullsub_534(Entity*);
|
||||
extern void sub_0805B390(u32);
|
||||
|
||||
extern void (*const gUnk_081237F8[])(Entity*);
|
||||
|
||||
void Object86(Entity* this) {
|
||||
gUnk_081237F8[this->action](this);
|
||||
static void (*const actionFuncs[])(Entity*) = {
|
||||
sub_08099DD0, sub_08099E10, sub_08099E58, sub_08099E8C, nullsub_534,
|
||||
};
|
||||
actionFuncs[this->action](this);
|
||||
}
|
||||
|
||||
void sub_08099DD0(Entity* this) {
|
||||
|
||||
Reference in New Issue
Block a user