Xeeynamo / sotn-decomp

Decompilation of Castlevania: Symphony of the Night (PSX+Saturn)
https://sotn.xee.dev/
GNU Affero General Public License v3.0
508 stars 55 forks source link

Decompiling tt_002 func_us_80176B6C #1826

Closed Onenutmcgee closed 3 weeks ago

Onenutmcgee commented 3 weeks ago

The only hacky/questionable thing I did here was I made a struct for the array. It may just be a multi dimensional s16 array. But having it as a struct allows us to give the values meaningful names.

PSX: https://decomp.me/scratch/vKcYn PSP: https://decomp.me/scratch/8RAYb

Onenutmcgee commented 3 weeks ago

Added a fix for the PSP build. PSX uses s16 for the temp var for zPriority, psp uses s32. Maybe there is some macro or something that can reconcile that, but I am not sure.