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-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
extern u32 osTvType;
|
|
|
|
extern u32 osRomBase;
|
|
|
|
extern u32 osResetType;
|
|
|
|
extern u32 osMemSize;
|
2022-04-30 23:03:22 +00:00
|
|
|
extern u8 osAppNMIBuffer[0x40];
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-07-18 09:55:35 +00:00
|
|
|
extern s8 D_80009430;
|
2022-03-10 20:21:46 +00:00
|
|
|
extern u32 gDmaMgrVerbose;
|
2020-05-14 23:11:33 +00:00
|
|
|
extern u32 gDmaMgrDmaBuffSize;
|
2022-06-03 19:43:30 +00:00
|
|
|
extern vu8 gViConfigBlack;
|
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 __osPiAccessQueueEnabled;
|
|
|
|
extern OSViMode osViModePalLan1;
|
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;
|
2022-04-09 00:20:23 +00:00
|
|
|
extern __OSThreadTail __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[];
|
2022-04-09 00:20:23 +00:00
|
|
|
extern OSMesgQueue gPiMgrCmdQueue;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern OSViMode gViConfigMode;
|
|
|
|
extern u8 D_80013960;
|
|
|
|
extern OSMesgQueue __osPiAccessQueue;
|
|
|
|
extern OSPiHandle __Dom1SpeedParam;
|
|
|
|
extern OSPiHandle __Dom2SpeedParam;
|
|
|
|
extern OSTime __osCurrentTime;
|
|
|
|
extern u32 __osBaseCounter;
|
|
|
|
extern u32 __osViIntrCount;
|
|
|
|
extern u32 __osTimerCounter;
|
|
|
|
extern DmaEntry gDmaDataTable[0x60C];
|
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"
|
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-04-04 16:12:59 +00:00
|
|
|
extern GameStateOverlay gGameStateOverlayTable[6];
|
2021-09-20 16:51:35 +00:00
|
|
|
extern u8 gWeatherMode;
|
2022-05-20 18:40:13 +00:00
|
|
|
extern u8 gLightConfigAfterUnderwater;
|
|
|
|
extern u8 gInterruptSongOfStorms;
|
|
|
|
extern u8 gSkyboxIsChanging;
|
|
|
|
extern u16 gTimeSpeed;
|
|
|
|
extern TimeBasedSkyboxEntry gTimeBasedSkyboxConfigs[][9];
|
|
|
|
extern SkyboxFile gNormalSkyFiles[];
|
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];
|
2022-03-20 22:42:01 +00:00
|
|
|
extern u8 gPlayerModelTypes[PLAYER_MODELGROUP_MAX][PLAYER_MODELGROUPENTRY_MAX];
|
2022-05-29 11:52:15 +00:00
|
|
|
extern Gfx* gPlayerLeftHandBgsDLs[];
|
|
|
|
extern Gfx* gPlayerLeftHandOpenDLs[];
|
|
|
|
extern Gfx* gPlayerLeftHandClosedDLs[];
|
|
|
|
extern Gfx* gPlayerLeftHandBoomerangDLs[];
|
2020-09-19 01:45:39 +00:00
|
|
|
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];
|
2022-05-16 22:14:08 +00:00
|
|
|
extern u16 gEquipMasks[EQUIP_TYPE_MAX];
|
|
|
|
extern u16 gEquipNegMasks[EQUIP_TYPE_MAX];
|
|
|
|
extern u32 gUpgradeMasks[UPG_MAX];
|
|
|
|
extern u8 gEquipShifts[EQUIP_TYPE_MAX];
|
|
|
|
extern u8 gUpgradeShifts[UPG_MAX];
|
|
|
|
extern u16 gUpgradeCapacities[UPG_MAX][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];
|
2022-05-21 18:23:43 +00:00
|
|
|
extern void (*gSceneCmdHandlers[SCENE_CMD_ID_MAX])(PlayState*, SceneCmd*);
|
2020-03-17 04:31:30 +00:00
|
|
|
extern s16 gLinkObjectIds[2];
|
|
|
|
extern u32 gObjectTableSize;
|
2021-01-20 18:15:17 +00:00
|
|
|
extern RomFile gObjectTable[OBJECT_ID_MAX];
|
2022-05-09 17:45:53 +00:00
|
|
|
extern EntranceInfo gEntranceTable[ENTR_MAX];
|
2021-08-15 23:15:58 +00:00
|
|
|
extern SceneTableEntry gSceneTable[SCENE_ID_MAX];
|
2021-06-01 17:31:29 +00:00
|
|
|
extern u16 gSramSlotOffsets[];
|
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"
|
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;
|
2020-04-16 21:36:12 +00:00
|
|
|
extern s32 gScreenWidth;
|
|
|
|
extern s32 gScreenHeight;
|
2020-03-17 04:31:30 +00:00
|
|
|
extern Mtx gMtxClear;
|
|
|
|
extern MtxF gMtxFClear;
|
2021-12-07 14:17:48 +00:00
|
|
|
extern u32 gIsCtrlr2Valid;
|
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];
|
2022-05-09 16:59:23 +00:00
|
|
|
extern f32 gPitchFrequencies[];
|
2020-09-01 21:23:30 +00:00
|
|
|
extern u8 gDefaultShortNoteVelocityTable[16];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gDefaultShortNoteGateTimeTable[16];
|
2022-06-19 14:31:08 +00:00
|
|
|
extern EnvelopePoint gDefaultEnvelope[4];
|
2020-04-21 08:19:33 +00:00
|
|
|
extern NoteSubEu gZeroNoteSub;
|
|
|
|
extern NoteSubEu gDefaultNoteSub;
|
2022-08-28 15:33:38 +00:00
|
|
|
extern u16 gHaasEffectDelaySizes[64];
|
2021-11-12 15:52:17 +00:00
|
|
|
extern s16 D_8012FBA8[];
|
2020-04-21 08:19:33 +00:00
|
|
|
extern f32 gHeadsetPanVolume[128];
|
|
|
|
extern f32 gStereoPanVolume[128];
|
|
|
|
extern f32 gDefaultPanVolume[128];
|
2022-06-03 19:59:02 +00:00
|
|
|
extern s16 gLowPassFilterData[16 * 8];
|
|
|
|
extern s16 gHighPassFilterData[15 * 8];
|
2022-08-30 21:35:00 +00:00
|
|
|
extern s32 gAudioContextInitialized;
|
2022-07-30 13:05:27 +00:00
|
|
|
extern u8 gIsLargeSfxBank[7];
|
2021-11-07 16:58:50 +00:00
|
|
|
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;
|
2022-05-09 16:59:23 +00:00
|
|
|
extern OcarinaNote* gScarecrowLongSongPtr;
|
2020-10-11 17:45:08 +00:00
|
|
|
extern u8* gScarecrowSpawnSongPtr;
|
2022-05-09 16:59:23 +00:00
|
|
|
extern OcarinaSongButtons gOcarinaSongButtons[];
|
2022-07-30 13:05:27 +00:00
|
|
|
extern SfxParams* gSfxParams[7];
|
2021-08-12 19:37:37 +00:00
|
|
|
extern char D_80133390[];
|
|
|
|
extern char D_80133398[];
|
2022-07-30 13:05:27 +00:00
|
|
|
extern u8 gSfxRequestWriteIndex;
|
|
|
|
extern u8 gSfxRequestReadIndex;
|
|
|
|
extern SfxBankEntry* gSfxBanks[7];
|
|
|
|
extern u8 gSfxBankSizes[];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gSfxChannelLayout;
|
2022-07-30 00:35:09 +00:00
|
|
|
extern u16 D_801333D0;
|
2022-04-23 14:55:18 +00:00
|
|
|
extern Vec3f gSfxDefaultPos;
|
|
|
|
extern f32 gSfxDefaultFreqAndVolScale;
|
|
|
|
extern s8 gSfxDefaultReverb;
|
2020-10-26 11:58:56 +00:00
|
|
|
extern u8 D_801333F0;
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u8 gAudioSfxSwapOff;
|
2022-07-30 00:35:09 +00:00
|
|
|
extern u8 D_801333F8;
|
2022-10-07 11:29:33 +00:00
|
|
|
extern u8 gSeqCmdWritePos;
|
|
|
|
extern u8 gSeqCmdReadPos;
|
|
|
|
extern u8 gStartSeqDisabled;
|
|
|
|
extern u8 gAudioDebugPrintSeqCmd;
|
2022-07-30 00:35:09 +00:00
|
|
|
extern u8 gSoundModeList[];
|
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 s32 gSystemArenaLogSeverity;
|
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])
|
2022-06-12 23:47:53 +00:00
|
|
|
extern const AudioHeapInitSizes gAudioHeapInitSizes;
|
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[];
|
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[];
|
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-12-06 19:03:42 +00:00
|
|
|
extern SaveContext gSaveContext;
|
|
|
|
extern GameInfo* gGameInfo;
|
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;
|
2021-12-02 22:31:39 +00:00
|
|
|
extern s16 gLensFlareScale;
|
|
|
|
extern f32 gLensFlareColorIntensity;
|
2022-05-20 18:40:13 +00:00
|
|
|
extern s16 gLensFlareGlareStrength;
|
2021-09-20 16:51:35 +00:00
|
|
|
extern LightningStrike gLightningStrike;
|
2020-05-01 15:09:20 +00:00
|
|
|
extern MapData* gMapData;
|
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-03-20 11:43:51 +00:00
|
|
|
extern PreNmiBuff* gAppNmiBufferPtr;
|
2022-06-03 19:43:30 +00:00
|
|
|
extern Scheduler gScheduler;
|
2022-10-02 15:38:09 +00:00
|
|
|
extern uintptr_t 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;
|
2021-12-06 19:03:42 +00:00
|
|
|
|
2022-07-30 13:05:27 +00:00
|
|
|
extern SfxBankEntry D_8016BAD0[9];
|
|
|
|
extern SfxBankEntry D_8016BC80[12];
|
|
|
|
extern SfxBankEntry D_8016BEC0[22];
|
|
|
|
extern SfxBankEntry D_8016C2E0[20];
|
|
|
|
extern SfxBankEntry D_8016C6A0[8];
|
|
|
|
extern SfxBankEntry D_8016C820[3];
|
|
|
|
extern SfxBankEntry D_8016C8B0[5];
|
|
|
|
extern ActiveSfx gActiveSfx[7][MAX_CHANNELS_PER_BANK]; // total size = 0xA8
|
|
|
|
extern u8 gSfxBankMuted[];
|
2021-11-07 16:58:50 +00:00
|
|
|
extern u16 gAudioSfxSwapSource[10];
|
|
|
|
extern u16 gAudioSfxSwapTarget[10];
|
|
|
|
extern u8 gAudioSfxSwapMode[10];
|
2022-10-07 11:29:33 +00:00
|
|
|
extern ActiveSequence gActiveSeqs[4];
|
2021-12-06 19:03:42 +00:00
|
|
|
extern AudioContext gAudioContext;
|
2021-08-12 19:37:37 +00:00
|
|
|
extern void(*D_801755D0)(void);
|
2021-12-06 19:03:42 +00:00
|
|
|
|
2020-03-17 04:31:30 +00:00
|
|
|
extern u32 __osMalloc_FreeBlockTest_Enable;
|
|
|
|
extern Arena gSystemArena;
|
2022-07-30 19:41:32 +00:00
|
|
|
extern OSPifRam __osContPifRam;
|
|
|
|
extern u8 __osContLastCmd;
|
2020-06-17 11:16:30 +00:00
|
|
|
extern u8 __osMaxControllers;
|
2020-07-07 00:15:01 +00:00
|
|
|
extern __OSInode __osPfsInodeCache;
|
2022-07-30 19:41:32 +00:00
|
|
|
extern OSPifRam __osPfsPifRam;
|
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
|
2022-05-03 22:43:09 +00:00
|
|
|
extern u64 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE / sizeof(u64)]; // 0xC00 bytes
|
|
|
|
extern u64 gGfxSPTaskStack[SP_DRAM_STACK_SIZE64]; // 0x400 bytes
|
2020-03-17 04:31:30 +00:00
|
|
|
extern GfxPool gGfxPools[2]; // 0x24820 bytes
|
|
|
|
extern u8 gAudioHeap[0x38000]; // 0x38000 bytes
|
|
|
|
extern u8 gSystemHeap[];
|
|
|
|
|
|
|
|
#endif
|