mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 14:31:22 +00:00
* feat(artifacts): inspect PlayStation PS-X EXE headers A file starting with the PS-X EXE magic is inventoried as psx-exe. Root metadata reports the initial PC and GP, the text, data and BSS ranges, the stack base and offset with the initial SP, the region marker and its licensed region, and whether the file length agrees with 0x800 plus the declared text size. header.bin and text.bin are stored ranges; text.bin carries its load address and holds only the bytes present. A file shorter or longer than the declared text, or a text size that is not a whole number of 2048-byte sectors, leaves coverage unknown with the offset involved. A file that ends inside the header is refused as truncated with the offset where it ends. Nothing is executed. * fix(artifacts): read PS-X EXE fields through BinaryReader and match regions exactly A region marker such as constructor matched an inherited property of the region table, so the metadata held a function and inventory failed when it was cloned. Regions now come from a Map. Header words are read through BinaryReader instead of a local decoder. The fixture writes literal offsets with distinct non-zero values, including data and a stack offset, and the guide says inventory reads the members to hash them. * fix(artifacts): validate PS-X file sizes and name the omitted text member * test(artifacts): extract PS-X EXE members in the reader test * style(artifacts): format the PS-X reader test --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>