mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-08 21:14:40 -04:00
Add aiLabel to setup's command_pointers array
This commit is contained in:
@@ -167,6 +167,8 @@ $(B_DIR)/setup.elf: $(B_DIR)/setup.o
|
||||
$(B_DIR)/ucode/setup.bin: $(B_DIR)/setup.elf
|
||||
mkdir -p $(B_DIR)/ucode
|
||||
$(TOOLCHAIN)-objcopy $< $@ -O binary
|
||||
dd if="$@" of="$@.tmp" bs=200256 count=1
|
||||
mv "$@.tmp" "$@"
|
||||
|
||||
################################################################################
|
||||
# Rarezip
|
||||
|
||||
+11
-1
@@ -3,10 +3,20 @@ OUTPUT_ARCH (mips)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.data 0x80059fe0 : AT(0x0000) {
|
||||
.setup 0x80059fe0 : AT(0x0000) {
|
||||
build/ntsc-final/setup.o (.data);
|
||||
}
|
||||
|
||||
.game 0x7f000000 : AT(SIZEOF(.setup)) {
|
||||
build/ntsc-final/game.o (.text);
|
||||
build/ntsc-final/game.o (.data);
|
||||
}
|
||||
|
||||
.gvars 0x80099fc0 : AT(SIZEOF(.setup) + SIZEOF(.game)) {
|
||||
build/ntsc-final/gvars.o (.text);
|
||||
build/ntsc-final/gvars.o (.data);
|
||||
}
|
||||
|
||||
/DISCARD/ : {
|
||||
* (.MIPS.abiflags);
|
||||
* (.options);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "ultra64.h"
|
||||
#include "src/include/constants.h"
|
||||
#include "src/include/gvars.h"
|
||||
#include "src/include/game.h"
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0f000000
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef _IN_GAME_H
|
||||
#define _IN_GAME_H
|
||||
#include <ultra64.h>
|
||||
#include "src/include/constants.h"
|
||||
|
||||
bool aiLabel(void);
|
||||
|
||||
#endif
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
#include <ultra64.h>
|
||||
#include "src/include/game.h"
|
||||
#include "src/include/setup.h"
|
||||
#include "src/include/stagesetup.h"
|
||||
#include "src/include/types.h"
|
||||
@@ -13948,7 +13949,7 @@ u32 var0000e4ac = 0x00000000;
|
||||
u32 command_pointers[] = {
|
||||
/*0x0000*/ 0x7f04dbc0,
|
||||
/*0x0001*/ 0x7f04dbfc,
|
||||
/*0x0002*/ 0x7f04dc3c,
|
||||
/*0x0002*/ aiLabel,
|
||||
/*0x0003*/ 0x7f04dc58,
|
||||
/*0x0004*/ 0x7f04e0a8,
|
||||
/*0x0005*/ 0x7f04dd08,
|
||||
|
||||
Reference in New Issue
Block a user