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

Decompile `no0` `func_us_801C27A4` elevator function #1819

Closed JoshSchreuder closed 3 weeks ago

JoshSchreuder commented 3 weeks ago

Decompiled matching both PSP and PSX

PSX: https://decomp.me/scratch/mSJ5k PSP: https://decomp.me/scratch/z05Dt

Had to do some rather ugly conditionals for SetStep related stuff, if someone can work out a better method that matches both that would be good, I tried a whole bunch of stuff like ternery but no luck