2021-09-15 23:24:19 +00:00
|
|
|
#ifndef VARIABLES_H
|
|
|
|
#define VARIABLES_H
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-10-03 15:22:44 +00:00
|
|
|
#include "z64.h"
|
|
|
|
#include "segment_symbols.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
extern Mtx D_01000000;
|
2020-09-19 01:45:39 +00:00
|
|
|
extern Gfx D_06025218[];
|
|
|
|
extern Gfx D_060252D8[];
|
|
|
|
extern Gfx D_06025438[];
|
|
|
|
extern Gfx D_06025598[];
|
|
|
|
extern Gfx D_06025658[];
|
|
|
|
extern Gfx D_060257B8[];
|
|
|
|
extern Gfx D_0602A738[];
|
|
|
|
extern Gfx D_0602CB48[];
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
extern u32 osTvType;
|
|
|
|
extern u32 osRomBase;
|
|
|
|
extern u32 osResetType;
|
|
|
|
extern u32 osMemSize;
|
2021-11-28 12:50:35 +00:00
|
|
|
extern u8 osAppNmiBuffer[0x40];
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
extern u8 D_80009320[];
|
|
|
|
extern u8 D_800093F0[];
|
2020-07-18 09:55:35 +00:00
|
|
|
extern s8 D_80009430;
|
2020-05-14 23:11:33 +00:00
|
|
|
extern u32 D_80009460;
|
|
|
|
extern u32 gDmaMgrDmaBuffSize;
|
2020-10-03 15:22:44 +00:00
|
|
|
extern vu8 gViConfigUseDefault;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u8 gViConfigAdditionalScanLines;
|
|
|
|
extern u32 gViConfigFeatures;
|
|
|
|
extern f32 gViConfigXScale;
|
|
|
|
extern f32 gViConfigYScale;
|
|
|
|
extern OSPiHandle* gCartHandle;
|
|
|
|
extern u32 gCurrentRegion;
|
|
|
|
extern u32 __osPiAccessQueueEnabled;
|
|
|
|
extern OSViMode osViModePalLan1;
|
|
|
|
extern u64 osClockRate;
|
2020-05-25 21:18:14 +00:00
|
|
|
extern s32 osViClock;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u32 __osShutdown;
|
2021-12-01 00:08:57 +00:00
|
|
|
extern OSHWIntr __OSGlobalIntMask;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern OSThread* __osThreadTail[];
|
2020-10-03 15:22:44 +00:00
|
|
|
extern OSThread* __osRunQueue;
|
|
|
|
extern OSThread* __osActiveQueue;
|
|
|
|
extern OSThread* __osRunningThread;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern OSThread* __osFaultedThread;
|
|
|
|
extern OSPiHandle* __osPiTable;
|
|
|
|
extern OSPiHandle* __osCurrentHandle[];
|
|
|
|
extern OSTimer* __osTimerList;
|
|
|
|
extern OSViMode osViModeNtscLan1;
|
|
|
|
extern OSViMode osViModeMpalLan1;
|
|
|
|
extern OSViContext* __osViCurr;
|
|
|
|
extern OSViContext* __osViNext;
|
|
|
|
extern OSViMode osViModeFpalLan1;
|
|
|
|
extern u32 __additional_scanline;
|
|
|
|
extern u8 gBuildTeam[];
|
|
|
|
extern u8 gBuildDate[];
|
|
|
|
extern u8 gBuildMakeOption[];
|
|
|
|
extern OSMesgQueue gPiMgrCmdQ;
|
|
|
|
extern OSViMode gViConfigMode;
|
|
|
|
extern u8 D_80013960;
|
|
|
|
extern OSMesg piAccessBuf;
|
|
|
|
extern OSMesgQueue __osPiAccessQueue;
|
|
|
|
extern OSPiHandle __Dom1SpeedParam;
|
|
|
|
extern OSPiHandle __Dom2SpeedParam;
|
|
|
|
extern OSThread __osThreadSave;
|
|
|
|
extern OSTimer __osBaseTimer;
|
|
|
|
extern OSTime __osCurrentTime;
|
|
|
|
extern u32 __osBaseCounter;
|
|
|
|
extern u32 __osViIntrCount;
|
|
|
|
extern u32 __osTimerCounter;
|
|
|
|
extern OSPiHandle __CartRomHandle;
|
|
|
|
extern DmaEntry gDmaDataTable[0x60C];
|
|
|
|
//extern ? D_800D7288;
|
2021-09-07 17:50:50 +00:00
|
|
|
extern u64 D_801120C0[];
|
2020-04-13 23:03:10 +00:00
|
|
|
extern u8 D_80113070[];
|
2021-05-26 18:46:07 +00:00
|
|
|
extern u64 gJpegUCode[];
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_80115440;
|
|
|
|
//extern ? D_80115760;
|
|
|
|
//extern ? D_80115770;
|
|
|
|
//extern ? D_8011578C;
|
|
|
|
//extern ? D_8011579C;
|
|
|
|
//extern ? D_801157AC;
|
|
|
|
//extern ? D_801157BC;
|
|
|
|
//extern ? D_801157CC;
|
|
|
|
//extern ? D_801157DC;
|
|
|
|
//extern ? D_801157EC;
|
|
|
|
//extern ? D_801157FC;
|
|
|
|
//extern ? D_801158C0;
|
|
|
|
//extern ? D_801158CC;
|
|
|
|
//extern ? D_801158D0;
|
|
|
|
//extern ? D_801158D4;
|
|
|
|
//extern ? D_801158D8;
|
|
|
|
//extern ? D_801158DC;
|
|
|
|
//extern ? D_801158E0;
|
|
|
|
//extern ? D_801158E4;
|
|
|
|
//extern ? D_801158E8;
|
|
|
|
//extern ? D_801158EC;
|
|
|
|
//extern ? D_801158F0;
|
|
|
|
//extern ? D_801158F4;
|
|
|
|
//extern ? D_801158F8;
|
|
|
|
//extern ? D_801158FC;
|
|
|
|
//extern ? D_80115908;
|
|
|
|
//extern ? D_80115914;
|
|
|
|
//extern ? D_80115920;
|
|
|
|
//extern ? D_8011592C;
|
|
|
|
//extern ? D_801159A4;
|
2020-06-01 22:55:34 +00:00
|
|
|
//extern ? D_801159A5;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_801159A6;
|
|
|
|
//extern ? D_801159A8;
|
|
|
|
//extern ? D_801159A9;
|
|
|
|
//extern ? D_801159AA;
|
2021-01-20 18:15:17 +00:00
|
|
|
extern EffectSsOverlay gEffectSsOverlayTable[EFFECT_SS_TYPE_MAX];
|
2020-03-25 22:39:51 +00:00
|
|
|
extern Gfx D_80116280[];
|
2021-01-20 18:15:17 +00:00
|
|
|
extern ActorOverlay gActorOverlayTable[ACTOR_ID_MAX]; // original name: "actor_dlftbls" 801162A0
|
2020-05-18 18:24:00 +00:00
|
|
|
extern s32 gMaxActorId; // original name: "MaxProfile"
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_80119E2C;
|
|
|
|
//extern ? D_80119E52;
|
|
|
|
//extern ? D_80119E54;
|
|
|
|
//extern ? D_80119E94;
|
|
|
|
//extern ? D_80119EAC;
|
decompile z_camera (#398)
* cleanup
* name camera action functions
* decompile a few small functions, name a few Camera struct members
* decompile camera data, decompile a few camera functions
* Split ASM for code_800BB0A0
* removing code_800BB0A0.s
* PR Requests, Camera WIP
* remove #define NON_MATCHING from db_camera
* rename code_8007BF90.c to z_olib.c, rename functions in z_olib.c
* camera wip
* rename some struct memebers, some decomp wip
* pr updates
* camera wip
* name some fields in Camera Struct, being making sense of Camera_Update
* Camera WIP
* wip
* wip
* add z64camera.h header, begin creating CameraSetting macros
* wip
* wip
* wip
* wip
* migrate camera bss to c
* match a couple functions in db_camera
* match some small db_camera functions
* wip
* migrate db_camera rodata, match a few functions
* remote db_camera.rodata.s
* match some of db_camera
* identify types of some unknown data pieces
* some small wip
* Match Camera_Init, some function changes, some struct name changes. Change unk_C0 and unk_CC to floats from Vec3fs
* add naming for a few more Camera struct members
* wip
* match func_80043F94
* Match Camera_Jump1
* document some of Camera_Jump1
* wip
* match Camera_Jump3
* Match Camera_Update, FeelsAmazing
* wip
* wip
* match Camera_SetParam
* minor cleanup
* wip
* wip
* match Camera_KeepOn0
* some documentation, modify some matching functions to match style of others.
* match Camera_Demo1
* match camera_demo9
* document Camera_Demo1 and Camera_Demo9
* wip
* Match camera_battle4
* match camera_unique2
* Match Camera_Unique3
* match camera_special6
* match Camera_Special5
* wip
* document camera_special6
* naming updates
* match camera_Unique1
* match Camera_Unique0
* wip
* Match Camera_CalcUpFromPitchYawRoll
* match func_80045508
* document Camera_Battle4
* document several camera functions, move camera data to separate file
* rename phi/theta to pitch/yaw
* wip
* uniq9 wip
* Camera_Unqiue9 OK
* document Camera_Unique9
* name unk_160 in camera struct
* wip
* wip
* minor updates
* fix conflicts
* wip
* wip
* Olib updates
* wip
* wip
* rename most Math3D functions, few matches, documentation
* wip
* document most of math3d
* wip
* wip
* wip
* pr updates
* Match Camera_Fixed4
* match func_80058E8C
* pr updates
* add missing comment block finalizer
* Merge math3dupdates
* match Camera_ChangeSetting
* Match Camera_ChangeMode
* match func_80058148
* Match Camera_Special9
* decompile the rest of camera data
* match Camera_Demo5
* name a few camera functions in z_play
* match func_80046CB4, some work on other fucntions
* wip
* impove some non matchings
* fix function rename
* match func_800588B4
* match Camera_Subj4
* wip
* Camera_Demo3 matching, Camera_Battle1 big progress
* Camera_Normal2 OK
* wip
* match Camera_Parallel1
* normalize some things across functions
* match Camera_Normal1
* Match Camera_Normal3
* some cleanup
* more cleanup
* more cleanup , match Camera_CalcDefaultPitch
* data formatting
* Match Camera_Jump2
* document Camera_Jump2
* Match Camera_KeepOn3
* document some of Camera_KeepOn3
* improve some non_matchings
* match func_80045C74 and func_800460A8
* code cleanup, documentation
* match Camera_KeepOn1
* Match Camera_Subj3
* Match Camera_Battle1
* remove non_matching from func_80044adc and func_80046e20
* name several members of Battle1
* more documentation on Battle1
* cleanup
* renaming Camera_Vec3fScaleXYZFactor to Camera_Vec3fTranslateByUnitVector
* reorganize update structs, remove final references to params, remove CameraParams union
* implement camera enums into player
* Renaming Camera_GetDir to Camera_GetInputDir, Camera_GetRealDir to Camera_GetCamDir, etc, implement camera enum's into player
* remove non-global camera variables from variables.h
* clean up some variable declarations
* finish pr comment updates
* fix some warnings
* data formatting
* finish commenting on data
* delete unused asm
* remove asm
Co-authored-by: fig <fig02srl@gmail.com>
2020-12-06 22:39:47 +00:00
|
|
|
extern s32 gDbgCamEnabled;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8011DB20;
|
|
|
|
//extern ? D_8011DE00;
|
|
|
|
//extern ? D_8011DE18;
|
|
|
|
//extern ? D_8011DE20;
|
|
|
|
//extern ? D_8011DE2C;
|
|
|
|
//extern ? D_8011DE54;
|
|
|
|
//extern ? D_8011DE6C;
|
|
|
|
//extern ? D_8011DE78;
|
|
|
|
//extern ? D_8011DEAC;
|
|
|
|
//extern ? D_8011DEEC;
|
|
|
|
//extern ? D_8011DF5C;
|
|
|
|
//extern ? D_8011DF6C;
|
|
|
|
//extern ? D_8011DFAC;
|
|
|
|
//extern ? D_8011DFEC;
|
|
|
|
//extern ? D_8011E008;
|
|
|
|
//extern ? D_8011E028;
|
|
|
|
//extern ? D_8011E02A;
|
|
|
|
//extern ? D_8011E02C;
|
|
|
|
//extern ? D_8011E02E;
|
|
|
|
//extern ? D_8011E056;
|
|
|
|
//extern ? D_8011E058;
|
|
|
|
//extern ? D_8011E05A;
|
|
|
|
//extern ? D_8011E068;
|
|
|
|
//extern ? D_8011E06A;
|
|
|
|
//extern ? D_8011E06C;
|
|
|
|
//extern ? D_8011E06E;
|
|
|
|
//extern ? D_8011E096;
|
|
|
|
//extern ? D_8011E098;
|
|
|
|
//extern ? D_8011E09A;
|
2020-03-18 14:27:49 +00:00
|
|
|
extern s16 D_8011E0B0;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8011E0D4;
|
2020-04-04 16:12:59 +00:00
|
|
|
extern GameStateOverlay gGameStateOverlayTable[6];
|
2021-09-20 16:51:35 +00:00
|
|
|
extern u8 gWeatherMode;
|
2020-08-21 01:28:41 +00:00
|
|
|
extern u8 D_8011FB34;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u8 D_8011FB38;
|
2021-09-20 16:51:35 +00:00
|
|
|
extern u8 gSkyboxBlendingEnabled;
|
|
|
|
extern u16 gTimeIncrement;
|
|
|
|
extern struct_8011FC1C D_8011FC1C[][9];
|
|
|
|
extern SkyboxFile gSkyboxFiles[];
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s32 gZeldaArenaLogSeverity;
|
2020-05-01 15:09:20 +00:00
|
|
|
extern MapData gMapDataTable;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s16 gSpoilingItems[3];
|
|
|
|
extern s16 gSpoilingItemReverts[3];
|
2020-12-02 03:19:56 +00:00
|
|
|
extern FlexSkeletonHeader* gPlayerSkelHeaders[2];
|
2020-09-19 01:45:39 +00:00
|
|
|
extern u8 gPlayerModelTypes[][5];
|
|
|
|
extern Gfx* D_80125D68[];
|
|
|
|
extern Gfx* D_80125DE8[];
|
|
|
|
extern Gfx* D_80125E08[];
|
|
|
|
extern Gfx* D_80125E18[];
|
|
|
|
extern Gfx* D_80125E58[];
|
|
|
|
extern Gfx* D_80125EF8[];
|
|
|
|
extern Gfx gCullBackDList[];
|
|
|
|
extern Gfx gCullFrontDList[];
|
2020-03-29 16:43:45 +00:00
|
|
|
extern Gfx gEmptyDL[];
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u32 gBitFlags[32];
|
|
|
|
extern u16 gEquipMasks[4];
|
|
|
|
extern u16 gEquipNegMasks[4];
|
|
|
|
extern u32 gUpgradeMasks[8];
|
|
|
|
extern u32 gUpgradeNegMasks[8];
|
|
|
|
extern u8 gEquipShifts[4];
|
|
|
|
extern u8 gUpgradeShifts[8];
|
|
|
|
extern u16 gUpgradeCapacities[8][4];
|
2021-11-26 22:37:33 +00:00
|
|
|
extern u32 gGsFlagsMasks[4];
|
|
|
|
extern u32 gGsFlagsShifts[4];
|
2021-05-02 23:15:16 +00:00
|
|
|
extern void* gItemIcons[0x82];
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u8 gItemSlots[56];
|
|
|
|
extern void (*gSceneCmdHandlers[26])(GlobalContext*, SceneCmd*);
|
|
|
|
extern s16 gLinkObjectIds[2];
|
|
|
|
extern u32 gObjectTableSize;
|
2021-01-20 18:15:17 +00:00
|
|
|
extern RomFile gObjectTable[OBJECT_ID_MAX];
|
2020-03-17 04:31:30 +00:00
|
|
|
extern EntranceInfo gEntranceTable[1556];
|
2021-08-15 23:15:58 +00:00
|
|
|
extern SceneTableEntry gSceneTable[SCENE_ID_MAX];
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8012A4A0;
|
2021-06-01 17:31:29 +00:00
|
|
|
extern u16 gSramSlotOffsets[];
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8012A690;
|
|
|
|
//extern ? D_8012A69C;
|
|
|
|
//extern ? D_8012A6A4;
|
|
|
|
//extern ? D_8012A704;
|
|
|
|
//extern ? D_8012A71C;
|
2021-11-01 16:23:49 +00:00
|
|
|
// 4 16-colors palettes
|
|
|
|
extern u64 gMojiFontTLUTs[4][4]; // original name: "moji_tlut"
|
|
|
|
extern u64 gMojiFontTex[]; // original name: "font_ff"
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8012AC90;
|
|
|
|
//extern ? D_8012ACA0;
|
|
|
|
//extern ? D_8012AD20;
|
|
|
|
//extern ? D_8012AD2C;
|
|
|
|
//extern ? D_8012AD40;
|
|
|
|
//extern ? D_8012ADC0;
|
|
|
|
//extern ? D_8012ADD8;
|
|
|
|
//extern ? D_8012AE18;
|
|
|
|
//extern ? D_8012AE24;
|
|
|
|
//extern ? D_8012AE30;
|
|
|
|
//extern ? D_8012AE3C;
|
|
|
|
//extern ? D_8012AEBC;
|
|
|
|
//extern ? D_8012AF0C;
|
|
|
|
//extern ? D_8012B000;
|
|
|
|
//extern ? D_8012B030;
|
|
|
|
//extern ? D_8012B060;
|
|
|
|
//extern ? D_8012BA90;
|
|
|
|
//extern ? D_8012BBA8;
|
|
|
|
//extern ? D_8012BFA8;
|
|
|
|
//extern ? D_8012C3A8;
|
|
|
|
//extern ? D_8012C7A8;
|
|
|
|
//extern ? D_8012CDC8;
|
|
|
|
//extern ? D_8012CEA0;
|
|
|
|
//extern ? D_8012CEE0;
|
|
|
|
//extern ? D_8012CEE4;
|
|
|
|
//extern ? D_8012CEE8;
|
|
|
|
//extern ? D_8012CEEC;
|
|
|
|
//extern ? D_8012CEF0;
|
|
|
|
//extern ? D_8012CEF4;
|
|
|
|
//extern ? D_8012CEF8;
|
|
|
|
//extern ? D_8012CF04;
|
|
|
|
//extern ? D_8012CF08;
|
|
|
|
//extern ? D_8012CF0C;
|
|
|
|
//extern ? D_8012CF10;
|
|
|
|
//extern ? D_8012CF14;
|
|
|
|
//extern ? D_8012CF18;
|
|
|
|
//extern ? D_8012CF24;
|
|
|
|
//extern ? D_8012CF30;
|
|
|
|
//extern ? D_8012CF34;
|
|
|
|
//extern ? D_8012CF38;
|
|
|
|
//extern ? D_8012CF3C;
|
|
|
|
//extern ? D_8012CF40;
|
|
|
|
//extern ? D_8012CF44;
|
|
|
|
//extern ? D_8012CF48;
|
|
|
|
//extern ? D_8012CF4C;
|
|
|
|
//extern ? D_8012CF50;
|
|
|
|
//extern ? D_8012CF60;
|
|
|
|
//extern ? D_8012CF64;
|
|
|
|
//extern ? D_8012CF68;
|
|
|
|
//extern ? D_8012CF6C;
|
|
|
|
//extern ? D_8012CF70;
|
|
|
|
//extern ? D_8012CF74;
|
|
|
|
//extern ? D_8012CF78;
|
|
|
|
//extern ? D_8012CF7C;
|
|
|
|
//extern ? D_8012CF80;
|
|
|
|
//extern ? D_8012CF84;
|
|
|
|
//extern ? D_8012CF88;
|
|
|
|
//extern ? D_8012CF94;
|
|
|
|
//extern ? D_8012CF98;
|
|
|
|
//extern ? D_8012CF9C;
|
|
|
|
//extern ? D_8012CFA4;
|
|
|
|
//extern ? D_8012CFA8;
|
|
|
|
//extern ? D_8012CFAC;
|
|
|
|
//extern ? D_8012CFB0;
|
|
|
|
//extern ? D_8012CFB4;
|
|
|
|
//extern ? D_8012CFC4;
|
|
|
|
//extern ? D_8012CFD0;
|
|
|
|
//extern ? D_8012CFE4;
|
|
|
|
//extern ? D_8012CFF8;
|
|
|
|
//extern ? D_8012D00C;
|
|
|
|
//extern ? D_8012D020;
|
|
|
|
//extern ? D_8012D034;
|
|
|
|
//extern ? D_8012D05C;
|
|
|
|
//extern ? D_8012D070;
|
|
|
|
//extern ? D_8012D084;
|
|
|
|
//extern ? D_8012D0AC;
|
|
|
|
//extern ? D_8012D0C0;
|
|
|
|
//extern ? D_8012D0D4;
|
|
|
|
//extern ? D_8012D0E4;
|
|
|
|
//extern ? D_8012D0F8;
|
|
|
|
//extern ? D_8012D103;
|
|
|
|
//extern ? D_8012D10C;
|
|
|
|
//extern ? D_8012D110;
|
|
|
|
//extern ? D_8012D114;
|
|
|
|
//extern ? D_8012D128;
|
|
|
|
//extern ? D_8012D13C;
|
|
|
|
//extern ? D_8012D14C;
|
2021-07-25 22:34:25 +00:00
|
|
|
//extern ? sDbCameraColors;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8012D170;
|
|
|
|
//extern ? D_8012D172;
|
2021-05-02 23:15:16 +00:00
|
|
|
extern KaleidoMgrOverlay gKaleidoMgrOverlayTable[KALEIDO_OVL_MAX];
|
|
|
|
extern KaleidoMgrOverlay* gKaleidoMgrCurOvl;
|
|
|
|
extern u8 gBossMarkState;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern void* D_8012D1F0;
|
|
|
|
//extern ? D_8012D200;
|
|
|
|
//extern ? D_8012D207;
|
|
|
|
//extern ? D_8012D210;
|
|
|
|
//extern ? D_8012D230;
|
|
|
|
//extern ? D_8012D248;
|
|
|
|
//extern ? D_8012D260;
|
|
|
|
//extern ? D_8012D264;
|
2020-04-16 21:36:12 +00:00
|
|
|
extern s32 gScreenWidth;
|
|
|
|
extern s32 gScreenHeight;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u32 gSystemHeapSize;
|
|
|
|
extern Mtx gMtxClear;
|
|
|
|
extern MtxF gMtxFClear;
|
2020-04-19 02:56:53 +00:00
|
|
|
extern u8 D_8012DBB0;
|
2020-03-19 22:29:33 +00:00
|
|
|
extern u32 D_8012DBC0;
|
2020-10-03 15:22:44 +00:00
|
|
|
extern vu32 gIrqMgrResetStatus;
|
2020-05-13 03:05:55 +00:00
|
|
|
extern volatile OSTime gIrqMgrRetraceTime;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s32 gDebugArenaLogSeverity;
|
2020-06-05 17:18:39 +00:00
|
|
|
//extern ? sUCodeDisasGeometryModes;
|
|
|
|
//extern ? sUCodeDisasMtxFlags;
|
|
|
|
//extern ? sUCodeDisasRenderModeFlags;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8012DDDC;
|
2020-06-05 17:18:39 +00:00
|
|
|
//extern ? sUCodeDisasModeHMacros;
|
|
|
|
//extern ? sUCodeDisasModeLMacros;
|
2021-07-27 23:44:58 +00:00
|
|
|
extern s16* gWaveSamples[9];
|
2021-11-12 15:52:17 +00:00
|
|
|
extern f32 gBendPitchOneOctaveFrequencies[256];
|
|
|
|
extern f32 gBendPitchTwoSemitonesFrequencies[256];
|
2020-09-01 21:23:30 +00:00
|
|
|
extern f32 gNoteFrequencies[];
|
|
|
|
extern u8 gDefaultShortNoteVelocityTable[16];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gDefaultShortNoteGateTimeTable[16];
|
2021-11-12 15:52:17 +00:00
|
|
|
extern AdsrEnvelope gDefaultEnvelope[4];
|
2020-04-21 08:19:33 +00:00
|
|
|
extern NoteSubEu gZeroNoteSub;
|
|
|
|
extern NoteSubEu gDefaultNoteSub;
|
2021-11-12 15:52:17 +00:00
|
|
|
extern u16 gHeadsetPanQuantization[64];
|
|
|
|
extern s16 D_8012FBA8[];
|
2020-04-21 08:19:33 +00:00
|
|
|
extern f32 gHeadsetPanVolume[128];
|
|
|
|
extern f32 gStereoPanVolume[128];
|
|
|
|
extern f32 gDefaultPanVolume[128];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern s16 sLowPassFilterData[16*8];
|
|
|
|
extern s16 sHighPassFilterData[15*8];
|
2021-07-27 23:44:58 +00:00
|
|
|
extern s32 gAudioContextInitalized;
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gIsLargeSoundBank[7];
|
|
|
|
extern u8 gChannelsPerBank[4][7];
|
|
|
|
extern u8 gUsedChannelsPerBank[4][7];
|
2021-08-30 00:08:41 +00:00
|
|
|
extern u8 gMorphaTransposeTable[16];
|
2021-09-01 22:33:37 +00:00
|
|
|
extern u8* gFrogsSongPtr;
|
|
|
|
extern OcarinaNote* gScarecrowCustomSongPtr;
|
2020-10-11 17:45:08 +00:00
|
|
|
extern u8* gScarecrowSpawnSongPtr;
|
2021-07-27 23:44:58 +00:00
|
|
|
extern OcarinaSongInfo gOcarinaSongNotes[];
|
2021-09-01 22:33:37 +00:00
|
|
|
extern SoundParams* gSoundParams[7];
|
2021-08-12 19:37:37 +00:00
|
|
|
extern char D_80133390[];
|
|
|
|
extern char D_80133398[];
|
2020-10-26 11:58:56 +00:00
|
|
|
extern SoundBankEntry* gSoundBanks[7];
|
|
|
|
extern u8 sBankSizes[7];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gSfxChannelLayout;
|
2020-10-26 11:58:56 +00:00
|
|
|
extern u16 D_801333D0;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern Vec3f D_801333D4;
|
2020-10-26 11:58:56 +00:00
|
|
|
extern f32 D_801333E0;
|
2021-07-27 23:44:58 +00:00
|
|
|
extern s8 D_801333E8;
|
2020-10-26 11:58:56 +00:00
|
|
|
extern u8 D_801333F0;
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gAudioSfxSwapOff;
|
2020-10-26 11:58:56 +00:00
|
|
|
extern u8 D_801333F8;
|
2021-07-27 23:44:58 +00:00
|
|
|
//extern ? sSeqCmdWrPos;
|
|
|
|
//extern ? sSeqCmdRdPos;
|
z_message_PAL, message_data_static and surrounding doc (#996)
* Initial progress on z_message_PAL, very messy
* Fix merge
* Some more progress
* Fix merge
* More z_message_PAL
* Small progress
* More small progress
* message_data_static files OK
* Prepare z_message_tables
* Matched another function, small updates
* Attempt to use asm-processor static-symbols branch
* Refactor text id declarations
* Begin large text codes parser function
* Fix merge
* Refactor done
* Build OK, add color and highscore names
* Remove encoded text headers and automatically encode during build
* Fix kanfont
* Various cleanups
* DISP macros
* Another match aside data
* Further progress
* Small improvements
* Deduplicate magic values for text control codes, small improvements
* Tiny progress
* Minor cleanups
* Clean up z_message_PAL comment
* Progress on large functions
* Further progress on large functions
* Changes to mkldscript to link .data in the .rodata section
* data OK
* Few improvements
* Use gDPLoadTextureBlock macros where appropriate
* rm z_message_tables, progress on large functions
* 2 more matches
* Improvements
* Small progress
* More progress on big function
* progress
* match func_80107980
* match Message_Update
* match func_8010BED8
* done
* Progress on remaining large functions
* Small progress on largest function
* Another match, extract text and move to assets, improve text build system
* Small nonmatchings improvements
* docs wip
* Largest function maybe equivalent
* Fix merge
* Document do_action values, largest function is almost instruction-matching
* Rename NAVI do_action to NONE, as that appears to be how that value is used in practice
* Fix merge
* one match
* Last function is instruction-matching
* Fix
* Improvements thanks to engineer124
* Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup
* More variables labeled, use text state enum everywhere
* More labels and names
* Fix
* Actor_IsTalking -> Actor_TalkRequested
* Match func_8010C39C and remove unused asm
* More docs
* Mostly ocarina related docs
* All msgModes named
* Fix assetclean
* Cleanup
* Extraction fixes and headers
* Suggestions
* Review suggestions
* Change text extraction again, only extract if the headers do not already exist
* Fix
* Use ast for charmap, fix assetclean for real this time
* Review suggestions
* BGM ids and ran formatter
* Review comments
* rename include_readonly to include_data_with_rodata
* Remove leading 0s in number directives
* Review suggestions for message_data_static
* textbox pos enum comments, rename several enum names from Message to TextBox
Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Co-authored-by: Roman971 <romanlasnier@hotmail.com>
2021-11-23 01:20:30 +00:00
|
|
|
extern u8 D_80133408;
|
2021-09-07 17:50:50 +00:00
|
|
|
extern u8 D_8013340C;
|
2021-08-30 00:08:41 +00:00
|
|
|
extern u8 gAudioSpecId;
|
z_message_PAL, message_data_static and surrounding doc (#996)
* Initial progress on z_message_PAL, very messy
* Fix merge
* Some more progress
* Fix merge
* More z_message_PAL
* Small progress
* More small progress
* message_data_static files OK
* Prepare z_message_tables
* Matched another function, small updates
* Attempt to use asm-processor static-symbols branch
* Refactor text id declarations
* Begin large text codes parser function
* Fix merge
* Refactor done
* Build OK, add color and highscore names
* Remove encoded text headers and automatically encode during build
* Fix kanfont
* Various cleanups
* DISP macros
* Another match aside data
* Further progress
* Small improvements
* Deduplicate magic values for text control codes, small improvements
* Tiny progress
* Minor cleanups
* Clean up z_message_PAL comment
* Progress on large functions
* Further progress on large functions
* Changes to mkldscript to link .data in the .rodata section
* data OK
* Few improvements
* Use gDPLoadTextureBlock macros where appropriate
* rm z_message_tables, progress on large functions
* 2 more matches
* Improvements
* Small progress
* More progress on big function
* progress
* match func_80107980
* match Message_Update
* match func_8010BED8
* done
* Progress on remaining large functions
* Small progress on largest function
* Another match, extract text and move to assets, improve text build system
* Small nonmatchings improvements
* docs wip
* Largest function maybe equivalent
* Fix merge
* Document do_action values, largest function is almost instruction-matching
* Rename NAVI do_action to NONE, as that appears to be how that value is used in practice
* Fix merge
* one match
* Last function is instruction-matching
* Fix
* Improvements thanks to engineer124
* Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup
* More variables labeled, use text state enum everywhere
* More labels and names
* Fix
* Actor_IsTalking -> Actor_TalkRequested
* Match func_8010C39C and remove unused asm
* More docs
* Mostly ocarina related docs
* All msgModes named
* Fix assetclean
* Cleanup
* Extraction fixes and headers
* Suggestions
* Review suggestions
* Change text extraction again, only extract if the headers do not already exist
* Fix
* Use ast for charmap, fix assetclean for real this time
* Review suggestions
* BGM ids and ran formatter
* Review comments
* rename include_readonly to include_data_with_rodata
* Remove leading 0s in number directives
* Review suggestions for message_data_static
* textbox pos enum comments, rename several enum names from Message to TextBox
Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Co-authored-by: Roman971 <romanlasnier@hotmail.com>
2021-11-23 01:20:30 +00:00
|
|
|
extern u8 D_80133418;
|
2021-08-30 00:08:41 +00:00
|
|
|
extern AudioSpec gAudioSpecs[18];
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s32 gOverlayLogSeverity;
|
|
|
|
//extern ? D_80134480;
|
|
|
|
//extern ? D_80134484;
|
|
|
|
extern s32 gSystemArenaLogSeverity;
|
|
|
|
//extern ? D_801344C0;
|
2020-06-17 11:16:30 +00:00
|
|
|
extern u32 gOSSiAccessQueueCreated; // = 0;
|
|
|
|
extern u32 gOSContInitialized; // = 0
|
2020-07-07 00:15:01 +00:00
|
|
|
extern s32 __osPfsInodeCacheChannel;
|
2020-06-17 11:16:30 +00:00
|
|
|
extern u8 __osPfsInodeCacheBank;
|
|
|
|
extern s32 __osPfsLastChannel;
|
z_message_PAL, message_data_static and surrounding doc (#996)
* Initial progress on z_message_PAL, very messy
* Fix merge
* Some more progress
* Fix merge
* More z_message_PAL
* Small progress
* More small progress
* message_data_static files OK
* Prepare z_message_tables
* Matched another function, small updates
* Attempt to use asm-processor static-symbols branch
* Refactor text id declarations
* Begin large text codes parser function
* Fix merge
* Refactor done
* Build OK, add color and highscore names
* Remove encoded text headers and automatically encode during build
* Fix kanfont
* Various cleanups
* DISP macros
* Another match aside data
* Further progress
* Small improvements
* Deduplicate magic values for text control codes, small improvements
* Tiny progress
* Minor cleanups
* Clean up z_message_PAL comment
* Progress on large functions
* Further progress on large functions
* Changes to mkldscript to link .data in the .rodata section
* data OK
* Few improvements
* Use gDPLoadTextureBlock macros where appropriate
* rm z_message_tables, progress on large functions
* 2 more matches
* Improvements
* Small progress
* More progress on big function
* progress
* match func_80107980
* match Message_Update
* match func_8010BED8
* done
* Progress on remaining large functions
* Small progress on largest function
* Another match, extract text and move to assets, improve text build system
* Small nonmatchings improvements
* docs wip
* Largest function maybe equivalent
* Fix merge
* Document do_action values, largest function is almost instruction-matching
* Rename NAVI do_action to NONE, as that appears to be how that value is used in practice
* Fix merge
* one match
* Last function is instruction-matching
* Fix
* Improvements thanks to engineer124
* Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup
* More variables labeled, use text state enum everywhere
* More labels and names
* Fix
* Actor_IsTalking -> Actor_TalkRequested
* Match func_8010C39C and remove unused asm
* More docs
* Mostly ocarina related docs
* All msgModes named
* Fix assetclean
* Cleanup
* Extraction fixes and headers
* Suggestions
* Review suggestions
* Change text extraction again, only extract if the headers do not already exist
* Fix
* Use ast for charmap, fix assetclean for real this time
* Review suggestions
* BGM ids and ran formatter
* Review comments
* rename include_readonly to include_data_with_rodata
* Remove leading 0s in number directives
* Review suggestions for message_data_static
* textbox pos enum comments, rename several enum names from Message to TextBox
Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Co-authored-by: Roman971 <romanlasnier@hotmail.com>
2021-11-23 01:20:30 +00:00
|
|
|
|
2021-07-27 23:44:58 +00:00
|
|
|
extern const s16 D_8014A6C0[];
|
|
|
|
#define gTatumsPerBeat (D_8014A6C0[1])
|
|
|
|
extern const AudioContextInitSizes D_8014A6C4;
|
z_message_PAL, message_data_static and surrounding doc (#996)
* Initial progress on z_message_PAL, very messy
* Fix merge
* Some more progress
* Fix merge
* More z_message_PAL
* Small progress
* More small progress
* message_data_static files OK
* Prepare z_message_tables
* Matched another function, small updates
* Attempt to use asm-processor static-symbols branch
* Refactor text id declarations
* Begin large text codes parser function
* Fix merge
* Refactor done
* Build OK, add color and highscore names
* Remove encoded text headers and automatically encode during build
* Fix kanfont
* Various cleanups
* DISP macros
* Another match aside data
* Further progress
* Small improvements
* Deduplicate magic values for text control codes, small improvements
* Tiny progress
* Minor cleanups
* Clean up z_message_PAL comment
* Progress on large functions
* Further progress on large functions
* Changes to mkldscript to link .data in the .rodata section
* data OK
* Few improvements
* Use gDPLoadTextureBlock macros where appropriate
* rm z_message_tables, progress on large functions
* 2 more matches
* Improvements
* Small progress
* More progress on big function
* progress
* match func_80107980
* match Message_Update
* match func_8010BED8
* done
* Progress on remaining large functions
* Small progress on largest function
* Another match, extract text and move to assets, improve text build system
* Small nonmatchings improvements
* docs wip
* Largest function maybe equivalent
* Fix merge
* Document do_action values, largest function is almost instruction-matching
* Rename NAVI do_action to NONE, as that appears to be how that value is used in practice
* Fix merge
* one match
* Last function is instruction-matching
* Fix
* Improvements thanks to engineer124
* Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup
* More variables labeled, use text state enum everywhere
* More labels and names
* Fix
* Actor_IsTalking -> Actor_TalkRequested
* Match func_8010C39C and remove unused asm
* More docs
* Mostly ocarina related docs
* All msgModes named
* Fix assetclean
* Cleanup
* Extraction fixes and headers
* Suggestions
* Review suggestions
* Change text extraction again, only extract if the headers do not already exist
* Fix
* Use ast for charmap, fix assetclean for real this time
* Review suggestions
* BGM ids and ran formatter
* Review comments
* rename include_readonly to include_data_with_rodata
* Remove leading 0s in number directives
* Review suggestions for message_data_static
* textbox pos enum comments, rename several enum names from Message to TextBox
Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Co-authored-by: Roman971 <romanlasnier@hotmail.com>
2021-11-23 01:20:30 +00:00
|
|
|
extern s16 gOcarinaSongItemMap[];
|
|
|
|
extern u8 gAudioBankTable[];
|
|
|
|
extern u8 D_80155340[];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gSoundFontTable[];
|
|
|
|
extern u8 gSequenceFontTable[];
|
2021-07-27 23:44:58 +00:00
|
|
|
extern u8 gSequenceTable[];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gSampleBankTable[];
|
2020-04-04 16:12:59 +00:00
|
|
|
extern u8 D_80155F50[];
|
2020-04-13 23:03:10 +00:00
|
|
|
extern u8 D_80157580[];
|
2020-05-27 13:06:37 +00:00
|
|
|
extern u8 D_801579A0[];
|
2021-05-26 18:46:07 +00:00
|
|
|
extern u64 gJpegUCodeData[];
|
z_message_PAL, message_data_static and surrounding doc (#996)
* Initial progress on z_message_PAL, very messy
* Fix merge
* Some more progress
* Fix merge
* More z_message_PAL
* Small progress
* More small progress
* message_data_static files OK
* Prepare z_message_tables
* Matched another function, small updates
* Attempt to use asm-processor static-symbols branch
* Refactor text id declarations
* Begin large text codes parser function
* Fix merge
* Refactor done
* Build OK, add color and highscore names
* Remove encoded text headers and automatically encode during build
* Fix kanfont
* Various cleanups
* DISP macros
* Another match aside data
* Further progress
* Small improvements
* Deduplicate magic values for text control codes, small improvements
* Tiny progress
* Minor cleanups
* Clean up z_message_PAL comment
* Progress on large functions
* Further progress on large functions
* Changes to mkldscript to link .data in the .rodata section
* data OK
* Few improvements
* Use gDPLoadTextureBlock macros where appropriate
* rm z_message_tables, progress on large functions
* 2 more matches
* Improvements
* Small progress
* More progress on big function
* progress
* match func_80107980
* match Message_Update
* match func_8010BED8
* done
* Progress on remaining large functions
* Small progress on largest function
* Another match, extract text and move to assets, improve text build system
* Small nonmatchings improvements
* docs wip
* Largest function maybe equivalent
* Fix merge
* Document do_action values, largest function is almost instruction-matching
* Rename NAVI do_action to NONE, as that appears to be how that value is used in practice
* Fix merge
* one match
* Last function is instruction-matching
* Fix
* Improvements thanks to engineer124
* Stack matched thanks to petrie911, now just a/v/low t regalloc issues, some cleanup
* More variables labeled, use text state enum everywhere
* More labels and names
* Fix
* Actor_IsTalking -> Actor_TalkRequested
* Match func_8010C39C and remove unused asm
* More docs
* Mostly ocarina related docs
* All msgModes named
* Fix assetclean
* Cleanup
* Extraction fixes and headers
* Suggestions
* Review suggestions
* Change text extraction again, only extract if the headers do not already exist
* Fix
* Use ast for charmap, fix assetclean for real this time
* Review suggestions
* BGM ids and ran formatter
* Review comments
* rename include_readonly to include_data_with_rodata
* Remove leading 0s in number directives
* Review suggestions for message_data_static
* textbox pos enum comments, rename several enum names from Message to TextBox
Co-authored-by: Thar0 <maximilianc64@gmail.com>
Co-authored-by: Zelllll <56516451+Zelllll@users.noreply.github.com>
Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain>
Co-authored-by: Roman971 <romanlasnier@hotmail.com>
2021-11-23 01:20:30 +00:00
|
|
|
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8015BC30;
|
|
|
|
//extern ? D_8015BC3C;
|
|
|
|
//extern ? D_8015BC48;
|
|
|
|
//extern ? D_8015BC58;
|
|
|
|
//extern ? D_8015BC64;
|
|
|
|
//extern ? D_8015BC70;
|
|
|
|
//extern ? D_8015BC80;
|
|
|
|
//extern ? D_8015BC8C;
|
|
|
|
//extern ? D_8015BC98;
|
|
|
|
//extern ? D_8015BCA8;
|
|
|
|
//extern ? D_8015BCB4;
|
|
|
|
//extern ? D_8015BCC0;
|
|
|
|
//extern ? D_8015BCD0;
|
|
|
|
//extern ? D_8015BCDC;
|
|
|
|
//extern ? D_8015BCE8;
|
|
|
|
//extern ? D_8015BCF8;
|
|
|
|
//extern ? D_8015BCFC;
|
|
|
|
//extern ? D_8015BD00;
|
|
|
|
//extern ? D_8015BD08;
|
|
|
|
//extern ? D_8015BD0A;
|
|
|
|
//extern ? D_8015BD0C;
|
|
|
|
//extern ? D_8015BD0E;
|
|
|
|
//extern ? D_8015BD10;
|
|
|
|
//extern ? D_8015BD34;
|
|
|
|
//extern ? D_8015BD38;
|
|
|
|
//extern ? D_8015BD3C;
|
|
|
|
//extern ? D_8015BD50;
|
|
|
|
//extern ? D_8015BD70;
|
|
|
|
//extern ? D_8015BD7C;
|
|
|
|
//extern ? D_8015BD80;
|
|
|
|
//extern ? D_8015BD84;
|
|
|
|
//extern ? D_8015BD90;
|
|
|
|
//extern ? D_8015BD9C;
|
|
|
|
//extern ? D_8015CE46;
|
decompile z_camera (#398)
* cleanup
* name camera action functions
* decompile a few small functions, name a few Camera struct members
* decompile camera data, decompile a few camera functions
* Split ASM for code_800BB0A0
* removing code_800BB0A0.s
* PR Requests, Camera WIP
* remove #define NON_MATCHING from db_camera
* rename code_8007BF90.c to z_olib.c, rename functions in z_olib.c
* camera wip
* rename some struct memebers, some decomp wip
* pr updates
* camera wip
* name some fields in Camera Struct, being making sense of Camera_Update
* Camera WIP
* wip
* wip
* add z64camera.h header, begin creating CameraSetting macros
* wip
* wip
* wip
* wip
* migrate camera bss to c
* match a couple functions in db_camera
* match some small db_camera functions
* wip
* migrate db_camera rodata, match a few functions
* remote db_camera.rodata.s
* match some of db_camera
* identify types of some unknown data pieces
* some small wip
* Match Camera_Init, some function changes, some struct name changes. Change unk_C0 and unk_CC to floats from Vec3fs
* add naming for a few more Camera struct members
* wip
* match func_80043F94
* Match Camera_Jump1
* document some of Camera_Jump1
* wip
* match Camera_Jump3
* Match Camera_Update, FeelsAmazing
* wip
* wip
* match Camera_SetParam
* minor cleanup
* wip
* wip
* match Camera_KeepOn0
* some documentation, modify some matching functions to match style of others.
* match Camera_Demo1
* match camera_demo9
* document Camera_Demo1 and Camera_Demo9
* wip
* Match camera_battle4
* match camera_unique2
* Match Camera_Unique3
* match camera_special6
* match Camera_Special5
* wip
* document camera_special6
* naming updates
* match camera_Unique1
* match Camera_Unique0
* wip
* Match Camera_CalcUpFromPitchYawRoll
* match func_80045508
* document Camera_Battle4
* document several camera functions, move camera data to separate file
* rename phi/theta to pitch/yaw
* wip
* uniq9 wip
* Camera_Unqiue9 OK
* document Camera_Unique9
* name unk_160 in camera struct
* wip
* wip
* minor updates
* fix conflicts
* wip
* wip
* Olib updates
* wip
* wip
* rename most Math3D functions, few matches, documentation
* wip
* document most of math3d
* wip
* wip
* wip
* pr updates
* Match Camera_Fixed4
* match func_80058E8C
* pr updates
* add missing comment block finalizer
* Merge math3dupdates
* match Camera_ChangeSetting
* Match Camera_ChangeMode
* match func_80058148
* Match Camera_Special9
* decompile the rest of camera data
* match Camera_Demo5
* name a few camera functions in z_play
* match func_80046CB4, some work on other fucntions
* wip
* impove some non matchings
* fix function rename
* match func_800588B4
* match Camera_Subj4
* wip
* Camera_Demo3 matching, Camera_Battle1 big progress
* Camera_Normal2 OK
* wip
* match Camera_Parallel1
* normalize some things across functions
* match Camera_Normal1
* Match Camera_Normal3
* some cleanup
* more cleanup
* more cleanup , match Camera_CalcDefaultPitch
* data formatting
* Match Camera_Jump2
* document Camera_Jump2
* Match Camera_KeepOn3
* document some of Camera_KeepOn3
* improve some non_matchings
* match func_80045C74 and func_800460A8
* code cleanup, documentation
* match Camera_KeepOn1
* Match Camera_Subj3
* Match Camera_Battle1
* remove non_matching from func_80044adc and func_80046e20
* name several members of Battle1
* more documentation on Battle1
* cleanup
* renaming Camera_Vec3fScaleXYZFactor to Camera_Vec3fTranslateByUnitVector
* reorganize update structs, remove final references to params, remove CameraParams union
* implement camera enums into player
* Renaming Camera_GetDir to Camera_GetInputDir, Camera_GetRealDir to Camera_GetCamDir, etc, implement camera enum's into player
* remove non-global camera variables from variables.h
* clean up some variable declarations
* finish pr comment updates
* fix some warnings
* data formatting
* finish commenting on data
* delete unused asm
* remove asm
Co-authored-by: fig <fig02srl@gmail.com>
2020-12-06 22:39:47 +00:00
|
|
|
//extern ? playerFloorPoly;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8015CE58;
|
|
|
|
//extern ? D_8015CE80;
|
|
|
|
//extern ? D_8015CE8C;
|
|
|
|
//extern ? D_8015CEA0;
|
|
|
|
//extern ? D_8015CEA8;
|
|
|
|
//extern ? D_8015CEC0;
|
|
|
|
//extern ? D_8015CED0;
|
|
|
|
//extern ? D_8015CF00;
|
|
|
|
//extern ? D_8015CF10;
|
|
|
|
//extern ? D_8015CF12;
|
|
|
|
//extern ? D_8015CF14;
|
|
|
|
//extern ? D_8015D3A4;
|
|
|
|
//extern ? D_8015D3A8;
|
|
|
|
//extern ? D_8015D3CC;
|
|
|
|
//extern ? D_8015D3D0;
|
|
|
|
//extern ? D_8015D3D8;
|
|
|
|
//extern ? D_8015D3DA;
|
|
|
|
//extern ? D_8015D3DC;
|
|
|
|
//extern ? D_8015D86C;
|
|
|
|
//extern ? D_8015D870;
|
|
|
|
//extern ? D_8015D894;
|
|
|
|
//extern ? D_8015D898;
|
|
|
|
//extern ? D_8015D8A0;
|
|
|
|
//extern ? D_8015D8A2;
|
|
|
|
//extern ? D_8015D8A4;
|
|
|
|
//extern ? D_8015DD34;
|
|
|
|
//extern ? D_8015DD38;
|
|
|
|
//extern ? D_8015DD5C;
|
|
|
|
//extern ? D_8015DD60;
|
|
|
|
//extern ? D_8015DD68;
|
|
|
|
//extern ? D_8015DD6A;
|
|
|
|
//extern ? D_8015DD6C;
|
|
|
|
//extern ? D_8015E1FC;
|
|
|
|
//extern ? D_8015E200;
|
|
|
|
//extern ? D_8015E224;
|
|
|
|
//extern ? D_8015E228;
|
|
|
|
//extern ? D_8015E230;
|
|
|
|
//extern ? D_8015E268;
|
|
|
|
//extern ? D_8015E2A0;
|
|
|
|
//extern ? D_8015E2D8;
|
|
|
|
//extern ? D_8015E310;
|
|
|
|
//extern ? D_8015E320;
|
|
|
|
//extern ? D_8015E358;
|
|
|
|
//extern ? D_8015E390;
|
|
|
|
//extern ? D_8015E3A0;
|
|
|
|
//extern ? D_8015E3D8;
|
|
|
|
//extern ? D_8015E410;
|
|
|
|
//extern ? D_8015E420;
|
|
|
|
//extern ? D_8015E430;
|
|
|
|
//extern ? D_8015E440;
|
|
|
|
//extern ? D_8015E478;
|
|
|
|
//extern ? D_8015E4B0;
|
|
|
|
//extern ? D_8015E4C0;
|
|
|
|
//extern ? D_8015E4F8;
|
|
|
|
//extern ? D_8015E530;
|
|
|
|
//extern ? D_8015E564;
|
|
|
|
//extern ? D_8015E598;
|
|
|
|
//extern ? D_8015E5A8;
|
|
|
|
//extern ? D_8015E5DC;
|
|
|
|
//extern ? D_8015E610;
|
|
|
|
//extern ? D_8015E61C;
|
|
|
|
//extern ? D_8015E628;
|
|
|
|
//extern ? D_8015E638;
|
|
|
|
//extern ? D_8015E648;
|
|
|
|
extern SaveContext gSaveContext; // 0x8015E660
|
2020-03-21 18:27:58 +00:00
|
|
|
extern GameInfo* gGameInfo; // 0x8015FA90
|
2020-05-29 21:08:40 +00:00
|
|
|
extern u16 D_8015FCC0;
|
|
|
|
extern u16 D_8015FCC2;
|
|
|
|
extern u16 D_8015FCC4;
|
2021-07-25 22:34:25 +00:00
|
|
|
extern u8 D_8015FCC8;
|
2021-09-20 16:51:35 +00:00
|
|
|
extern u8 gCustomLensFlareOn;
|
|
|
|
extern Vec3f gCustomLensFlarePos;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s16 D_8015FD06;
|
|
|
|
extern f32 D_8015FD08;
|
|
|
|
extern s16 D_8015FD0C;
|
2021-09-20 16:51:35 +00:00
|
|
|
extern LightningStrike gLightningStrike;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8015FDF8;
|
2020-05-01 15:09:20 +00:00
|
|
|
extern MapData* gMapData;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_80160020;
|
|
|
|
//extern ? D_801600C0;
|
|
|
|
extern u8 D_80161010;
|
|
|
|
extern u8 D_801610D4;
|
|
|
|
extern u8 D_801610D5;
|
|
|
|
extern u8 D_801610DA;
|
|
|
|
//extern ? D_80161118;
|
|
|
|
//extern ? D_8016111A;
|
|
|
|
//extern ? D_8016111C;
|
|
|
|
//extern ? D_80161120;
|
|
|
|
//extern ? D_8016112C;
|
|
|
|
//extern ? D_80161138;
|
|
|
|
//extern ? D_8016113C;
|
|
|
|
//extern ? D_80161160;
|
|
|
|
//extern ? D_8016116E;
|
|
|
|
//extern ? D_80161170;
|
|
|
|
//extern ? D_8016117E;
|
|
|
|
//extern ? D_80161180;
|
|
|
|
//extern ? D_80161240;
|
|
|
|
//extern ? D_801612D0;
|
|
|
|
//extern ? D_801612D2;
|
|
|
|
//extern ? D_801612EC;
|
2021-05-02 23:15:16 +00:00
|
|
|
extern f32 gBossMarkScale;
|
|
|
|
extern PauseMapMarksData* gLoadedPauseMarkDataTable;
|
2020-04-30 18:41:09 +00:00
|
|
|
extern s32 gTrnsnUnkState;
|
2020-09-30 00:18:46 +00:00
|
|
|
extern Color_RGBA8_u32 D_801614B0;
|
2020-05-13 03:05:55 +00:00
|
|
|
extern SpeedMeter gSpeedMeter;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_801664F0;
|
|
|
|
//extern ? D_80166500;
|
|
|
|
//extern ? D_80166510;
|
|
|
|
//extern ? D_80166528;
|
|
|
|
//extern ? D_801665B0;
|
|
|
|
//extern ? D_801665C0;
|
|
|
|
//extern ? D_801665D0;
|
|
|
|
//extern ? D_801665D4;
|
|
|
|
//extern ? D_801665D8;
|
|
|
|
//extern ? D_801665DC;
|
|
|
|
//extern ? D_801665E0;
|
|
|
|
//extern ? D_801665F0;
|
|
|
|
//extern ? D_80166648;
|
2020-03-20 11:43:51 +00:00
|
|
|
extern PreNmiBuff* gAppNmiBufferPtr;
|
2020-05-11 00:04:41 +00:00
|
|
|
extern SchedContext gSchedContext;
|
2020-04-19 02:56:53 +00:00
|
|
|
extern PadMgr gPadMgr;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_80166D28;
|
2020-04-16 21:36:12 +00:00
|
|
|
extern u32 gSegments[NUM_SEGMENTS];
|
2020-04-04 16:12:59 +00:00
|
|
|
extern volatile OSTime D_8016A520;
|
|
|
|
extern volatile OSTime D_8016A528;
|
|
|
|
extern volatile OSTime D_8016A530;
|
|
|
|
extern volatile OSTime D_8016A538;
|
|
|
|
extern volatile OSTime D_8016A540;
|
|
|
|
extern volatile OSTime D_8016A548;
|
|
|
|
extern volatile OSTime D_8016A550;
|
|
|
|
extern volatile OSTime D_8016A558;
|
2020-05-26 15:39:27 +00:00
|
|
|
extern volatile OSTime gRSPAudioTotalTime;
|
|
|
|
extern volatile OSTime gRSPGFXTotalTime;
|
|
|
|
extern volatile OSTime gRSPOtherTotalTime;
|
|
|
|
extern volatile OSTime gRDPTotalTime;
|
2020-05-13 03:05:55 +00:00
|
|
|
extern SpeedMeterTimeEntry* gSpeedMeterTimeEntryPtr;
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8016A590;
|
|
|
|
//extern ? D_8016A594;
|
|
|
|
//extern ? D_8016A598;
|
|
|
|
//extern ? D_8016A5A0;
|
|
|
|
//extern ? D_8016A5B8;
|
|
|
|
//extern ? D_8016A5C4;
|
|
|
|
//extern ? D_8016A5D0;
|
|
|
|
//extern ? D_8016A5E8;
|
|
|
|
//extern ? D_8016A5F8;
|
|
|
|
//extern ? D_8016A608;
|
|
|
|
//extern ? D_8016A618;
|
|
|
|
//extern ? D_8016A628;
|
|
|
|
//extern ? D_8016A638;
|
|
|
|
//extern ? D_8016A688;
|
|
|
|
//extern ? D_8016A698;
|
|
|
|
//extern ? D_8016A6A8;
|
|
|
|
//extern ? D_8016A6E8;
|
|
|
|
//extern ? D_8016A6F8;
|
|
|
|
//extern ? D_8016A704;
|
|
|
|
//extern ? D_8016A710;
|
|
|
|
//extern ? D_8016A720;
|
|
|
|
//extern ? D_8016A724;
|
|
|
|
//extern ? D_8016A728;
|
|
|
|
//extern ? D_8016A730;
|
|
|
|
//extern ? D_8016A732;
|
|
|
|
//extern ? D_8016A734;
|
|
|
|
//extern ? D_8016A736;
|
|
|
|
//extern ? D_8016A738;
|
|
|
|
//extern ? D_8016A73A;
|
|
|
|
//extern ? D_8016A73C;
|
|
|
|
//extern ? D_8016A73E;
|
|
|
|
//extern ? D_8016A740;
|
|
|
|
//extern ? D_8016A750;
|
|
|
|
//extern ? D_8016A794;
|
|
|
|
//extern ? D_8016A7AC;
|
|
|
|
extern FaultThreadStruct gFaultStruct;
|
2021-11-07 16:58:50 +00:00
|
|
|
extern ActiveSound gActiveSounds[7][MAX_CHANNELS_PER_BANK]; // total size = 0xA8
|
2021-08-30 00:08:41 +00:00
|
|
|
extern u8 gSoundBankMuted[];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u16 gAudioSfxSwapSource[10];
|
|
|
|
extern u16 gAudioSfxSwapTarget[10];
|
|
|
|
extern u8 gAudioSfxSwapMode[10];
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8016E320;
|
|
|
|
//extern ? D_8016E348;
|
2021-07-27 23:44:58 +00:00
|
|
|
extern unk_D_8016E750 D_8016E750[4];
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_8016EE8B;
|
2021-07-27 23:44:58 +00:00
|
|
|
extern AudioContext gAudioContext; // at 0x8016F180
|
2020-03-17 04:31:30 +00:00
|
|
|
//extern ? D_80174D28;
|
|
|
|
//extern ? D_80174D38;
|
|
|
|
//extern ? D_80174D48;
|
|
|
|
//extern ? D_80174D64;
|
|
|
|
//extern ? D_80174D68;
|
|
|
|
//extern ? D_80174D88;
|
|
|
|
//extern ? D_80174DA0;
|
|
|
|
//extern ? D_80174DB8;
|
|
|
|
//extern ? D_80174DBC;
|
|
|
|
//extern ? D_80174DC0;
|
2021-08-12 19:37:37 +00:00
|
|
|
extern void(*D_801755D0)(void);
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u32 __osMalloc_FreeBlockTest_Enable;
|
|
|
|
//extern ? D_80175640;
|
|
|
|
//extern ? D_80175670;
|
|
|
|
//extern ? D_80175680;
|
|
|
|
//extern ? D_80175688;
|
|
|
|
//extern ? D_80175690;
|
|
|
|
//extern ? D_80175698;
|
|
|
|
//extern ? D_8017569C;
|
|
|
|
//extern ? D_801756A0;
|
|
|
|
//extern ? D_801756A8;
|
|
|
|
extern Arena gSystemArena;
|
2020-06-17 11:16:30 +00:00
|
|
|
extern OSPifRam osPifBuffers[MAXCONTROLLERS];
|
|
|
|
extern OSMesg osSiMesgBuff[SIAccessQueueSize];
|
|
|
|
extern OSMesgQueue gOSSiMessageQueue;
|
|
|
|
extern OSPifRam __osPifInternalBuff;
|
|
|
|
extern u8 __osContLastPoll;
|
|
|
|
extern u8 __osMaxControllers;
|
|
|
|
extern OSMesgQueue __osContMesgQueue;
|
|
|
|
extern OSMesg __osContMesgBuff[4];
|
2020-07-07 00:15:01 +00:00
|
|
|
extern __OSInode __osPfsInodeCache;
|
2021-02-14 00:49:40 +00:00
|
|
|
extern OSPifRam gPifMempakBuf;
|
2020-09-05 13:45:10 +00:00
|
|
|
extern u16 gZBuffer[SCREEN_HEIGHT][SCREEN_WIDTH]; // 0x25800 bytes
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u64 gGfxSPTaskOutputBuffer[0x3000]; // 0x18000 bytes
|
|
|
|
extern u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE]; // 0xC00 bytes
|
|
|
|
extern u8 gGfxSPTaskStack[0x400]; // 0x400 bytes
|
|
|
|
extern GfxPool gGfxPools[2]; // 0x24820 bytes
|
|
|
|
extern u8 gAudioHeap[0x38000]; // 0x38000 bytes
|
|
|
|
extern u8 gSystemHeap[];
|
|
|
|
|
|
|
|
#endif
|