silent-hill-decomp icon indicating copy to clipboard operation
silent-hill-decomp copied to clipboard

Small fixes, add support for splatting/building `BODYPROG.BIN`

Open emoose opened this issue 2 months ago • 0 comments

Hi thanks for the work on this, tried setting it up but ran into some issues, luckily were only minor though and was able to mostly get them fixed, and got some initial support added for BODYPROG.BIN.

Figured it's worth making a PR in case anyone else wants to give this a try too.

  • changed silentassets tool to only decrypt the bodyprog.bin/b_konami.bin files, and don't try decrypting map overlays since they don't seem encrypted
  • fixed some issues with SLUS_007.07, there was some problem with things getting added to .rodata and then discarded, but adding section_order to yaml seems to fix that, also added missing jlabel to macros file
  • added config for splatting BODYPROG.BIN & added it to makefile, assembles very close ~~but there's 8 extra padding bytes at the end, haven't found a way to get rid of them yet, maybe can just add some hack in makefile~~ seems --no-pad-sections fixes this
  • some minor readme.md fixes

Unfortunately BODYPROG makes use of cop2 which made splat turn some funcs into data defines instead and break build, adding the funcs to symbol_addresses file works luckily - did try checking if disasm_unknown in latest splat version might help it but that just disassembled it into some weird RTPS / mvmva 1,0,3,3,0 opcodes, ah well.

E: latest commit changed to use PsyQ 4.3, with that I was able to get some small decompiled boot funcs to compile to matching asm

emoose avatar Apr 24 '24 18:04 emoose