mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 13:09:44 +00:00
322222adfe
This is a historical W.I.P. that held me back due to some dirty bytes in the US version. It is now done. I renamed the file to `lba_stage.c` as I plan to add another file called `lba_bin.c` right after this PR. To quickly build the HD LBA, which is very different, I wrote a quick script to duplicate and patch the US one: ```python def s16(f): return int.from_bytes(f.read(2), byteorder='little', signed=False) def s32(f): return int.from_bytes(f.read(4), byteorder='little', signed=False) with open("disks/pspeu/PSP_GAME/USRDIR/res/ps/hdbin/dra.bin", "rb") as f: f.seek(0x3C50) for i in range(0, 0x50): print(f"0x{s32(f):04X}, 0x{s32(f):04X}, 0x{s32(f):05X}, 0x{s32(f):04X}, 0x{s32(f):04X}, 0x{s32(f):05X}, 0x{s32(f):04X},") s32(f) s32(f) s32(f) s32(f) ``` --------- Co-authored-by: sozud <122322823+sozud@users.noreply.github.com>
16 lines
297 B
JSON
16 lines
297 B
JSON
[
|
|
{
|
|
"name": "build/us/DRA.BIN",
|
|
"0x220E": 41,
|
|
"0x220F": 13,
|
|
"0x2459": 49,
|
|
"0x245A": 55,
|
|
"0x245B": 44,
|
|
"0x3C1A7": 110,
|
|
"0x3CC09": 10,
|
|
"0x3CC0A": 13,
|
|
"0x3CC0B": 10,
|
|
"0x3D186": 9,
|
|
"0x3D187": 9
|
|
}
|
|
] |