zeldaret / oot

Decompilation of The Legend of Zelda: Ocarina of Time
4.84k stars 595 forks source link

[headers 5] Misc small headers untangling #2147

Closed Dragorn421 closed 1 month ago

Dragorn421 commented 2 months ago

Working towars untangling headers for the purpose of z_fishing bss This all follows what's already in MM

Dragorn421 commented 2 months ago

src/audio/general.c bss doesn't match in gc-eu-mq-dbg: the block number for bss symbol sAudioUpdateTaskEnd wraps to 0 (mod 256) when it's at the end of bss in the baserom.

I have no idea how to work around this in debug, where our #pragma increment_block_number mechanism doesn't work. I guess we need this file to include less headers than global.h: this needs at least #2151 for gPadMgr to be moved out of variables.h

drafting until #2151 is merged