mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-30 08:20:37 +00:00
28b44193c5
Failing to decompile [RenderTilemap](https://decomp.me/scratch/WigVS) made me realise there were a few fields and structures I have always been suspicious to be part of the same structure. After cross-referencing overlapping fields from different structures, I was able to merge `D_80073088`, `g_Camera`, `D_8007309C`, `g_CurrentRoom` and `g_CurrentRoomTileLayout` into the new `g_Tilemap`. I was forced to touch the majority of the code-base, which gave me the opportunity to standardise some field names (e.g. from `currentRoomTileLayout`, `roomLayout`, `layout`, `t` into `tilemap`), remove some fake code, redundant code and adjust some symbols.
14 lines
277 B
Plaintext
14 lines
277 B
Plaintext
g_api = 0x8003C774;
|
|
g_GpuBuffers = 0x8003CB08;
|
|
|
|
g_Player = 0x80072BD0;
|
|
g_Camera = 0x8007308C;
|
|
g_CurrentRoom = 0x800730A0;
|
|
|
|
g_pads = 0x80097490;
|
|
g_Status = 0x80097964;
|
|
|
|
g_CastleFlags = 0x8003BDEC;
|
|
D_8003C908 = 0x8003C908;
|
|
D_8017D000 = 0x8017D000;
|