mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-08 18:23:19 -04:00
Split setup.c into smaller files
This commit is contained in:
+5
-2
@@ -19,8 +19,11 @@ SECTIONS
|
||||
}
|
||||
|
||||
.setup 0x80059fe0 : AT(SIZEOF(.boot) + SIZEOF(.library)) {
|
||||
src/setup/setup.o (.text);
|
||||
src/setup/setup.o (.data);
|
||||
src/setup/setup_000000.o (.data);
|
||||
src/setup/inventory.o (.data);
|
||||
src/setup/setup_0160b0.o (.data);
|
||||
src/setup/ailists.o (.data);
|
||||
src/setup/setup_020df0.o (.data);
|
||||
}
|
||||
|
||||
.game 0x7f000000 : AT(SIZEOF(.boot) + SIZEOF(.library) + SIZEOF(.setup)) {
|
||||
|
||||
+5
-2
@@ -19,8 +19,11 @@ SECTIONS
|
||||
}
|
||||
|
||||
.setup 0x80059fe0 : AT(SIZEOF(.game) + SIZEOF(.library)) {
|
||||
src/setup/setup.o (.text);
|
||||
src/setup/setup.o (.data);
|
||||
src/setup/setup_000000.o (.data);
|
||||
src/setup/inventory.o (.data);
|
||||
src/setup/setup_0160b0.o (.data);
|
||||
src/setup/ailists.o (.data);
|
||||
src/setup/setup_020df0.o (.data);
|
||||
}
|
||||
|
||||
.gvars 0x80099fc0 : AT(SIZEOF(.game) + SIZEOF(.library) + SIZEOF(.setup)) {
|
||||
|
||||
+5
-1
@@ -9,7 +9,11 @@ SECTIONS
|
||||
}
|
||||
|
||||
.setup 0x80059fe0 : AT(SIZEOF(.library)) {
|
||||
src/setup/setup.o (.data);
|
||||
src/setup/setup_000000.o (.data);
|
||||
src/setup/inventory.o (.data);
|
||||
src/setup/setup_0160b0.o (.data);
|
||||
src/setup/ailists.o (.data);
|
||||
src/setup/setup_020df0.o (.data);
|
||||
}
|
||||
|
||||
.game 0x7f000000 : AT(SIZEOF(.library) + SIZEOF(.setup)) {
|
||||
|
||||
+5
-1
@@ -4,7 +4,11 @@ OUTPUT_ARCH (mips)
|
||||
SECTIONS
|
||||
{
|
||||
.setup 0x80059fe0 : AT(0x0000) {
|
||||
src/setup/setup.o (.data);
|
||||
src/setup/setup_000000.o (.data);
|
||||
src/setup/inventory.o (.data);
|
||||
src/setup/setup_0160b0.o (.data);
|
||||
src/setup/ailists.o (.data);
|
||||
src/setup/setup_020df0.o (.data);
|
||||
}
|
||||
|
||||
.game 0x7f000000 : AT(SIZEOF(.setup)) {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#ifndef IN_SETUP_AILISTS_H
|
||||
#define IN_SETUP_AILISTS_H
|
||||
#include <ultra64.h>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,5 @@
|
||||
#ifndef IN_SETUP_INVENTORY_H
|
||||
#define IN_SETUP_INVENTORY_H
|
||||
#include <ultra64.h>
|
||||
|
||||
#endif
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef _IN_SETUP_H
|
||||
#define _IN_SETUP_H
|
||||
#include <ultra64.h>
|
||||
|
||||
extern u32 levelnum;
|
||||
extern u64 rand_seed;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef IN_SETUP_000000_H
|
||||
#define IN_SETUP_000000_H
|
||||
#include <ultra64.h>
|
||||
|
||||
extern u32 levelnum;
|
||||
extern u64 rand_seed;
|
||||
|
||||
extern u32 var0000bc00;
|
||||
extern u32 var0000dac0;
|
||||
extern u32 var0000db08;
|
||||
extern u32 var0000b6e0;
|
||||
extern u32 var0000da30;
|
||||
extern u32 var0000da78;
|
||||
extern u32 var0000c3f8;
|
||||
extern u32 var0000db50;
|
||||
extern u32 var0000db98;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef IN_SETUP_0160B0_H
|
||||
#define IN_SETUP_0160B0_H
|
||||
#include <ultra64.h>
|
||||
|
||||
extern struct menu_dialog menudialog_18d78;
|
||||
extern struct menu_dialog menudialog_18d90;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef IN_SETUP_020DF0_H
|
||||
#define IN_SETUP_020DF0_H
|
||||
#include <ultra64.h>
|
||||
|
||||
extern struct menu_dialog menudialog_2a800;
|
||||
extern struct menu_dialog menudialog_2a818;
|
||||
extern struct menu_dialog menudialog_mpweapons;
|
||||
extern struct menu_dialog menudialog_mpoptions;
|
||||
extern struct menu_dialog menudialog_mpcontrol;
|
||||
extern struct menu_dialog menudialog_mpplayerstats;
|
||||
extern struct menu_dialog menudialog_mpplayername;
|
||||
extern struct menu_dialog menudialog_mploadgamesettingstype0;
|
||||
extern struct menu_dialog menudialog_mploadgamesettingstype1;
|
||||
extern struct menu_dialog menudialog_mploadplayer;
|
||||
extern struct menu_dialog menudialog_mparena;
|
||||
extern struct menu_dialog menudialog_mplimits;
|
||||
extern struct menu_dialog menudialog_mpplayerhandicaps;
|
||||
extern struct menu_dialog menudialog_mpready;
|
||||
extern struct menu_dialog menudialog_mpsimulants;
|
||||
extern struct menu_dialog menudialog_mpteamcontrol;
|
||||
extern struct menu_dialog menudialog_mpchallengedetails;
|
||||
extern struct menu_dialog menudialog_mpscenario;
|
||||
extern struct menu_dialog menudialog_mpquickteam;
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <ultra64.h>
|
||||
#include "library/library.h"
|
||||
#include "setup/setup.h"
|
||||
#include "setup/setup_000000.h"
|
||||
|
||||
u32 var0004f3e0 = 0x70002d68;
|
||||
u32 var0004f3e4 = 0x70002d14;
|
||||
|
||||
+5494
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
-44413
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user