From bbff754c21af4ce030c5dcc3a9fdcbd84b79ec6c Mon Sep 17 00:00:00 2001 From: Nicolas Pixel Noble Date: Wed, 3 Apr 2024 18:55:44 -0700 Subject: [PATCH] Adding missing ps1-packer options. --- docs/Lua/binary.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Lua/binary.md b/docs/Lua/binary.md index b73c1e548..6ba7f4aeb 100644 --- a/docs/Lua/binary.md +++ b/docs/Lua/binary.md @@ -15,6 +15,8 @@ There is some support for handling PSX binaries in the Lua API. The `PCSX.Binary - `booty`: a boolean specifying that the output stream will be suitable to boot as a PIO bytestream. Incompatible with `tload` or `raw`. - `shell`: a boolean specifying that the output stream will attempt to reboot the machine and load the binary, which can be useful when resetting the kernel. - `raw`: a boolean specifying that the output stream will be a raw binary, without a PS-EXE header. The generated binary will be completely position independent, and will not require any special loading address. It is up to the user to ensure no overlap can happen by loading the file to a high enough address. This option can be used to generate embedded binaries within others, or to be loaded by other means, and executed by jumping to it. The `tload` option will be ignored when this is specified. + - `rom`: a boolean specifying that the output stream will be a ROM file suitable to be flashed on a cheat cartridge, as long as the cartridge itself has linear addressing, which is not necessarily the case for all cartridges. The `tload` option will be ignored when this is specified. + - `cpe`: a boolean specifying that the output stream will be a CPE file, which is the file format used by the ancient toolchain by Sony. This can be useful when trying to load binaries with these ancient tools. - `PCSX.Binary.createExe(src, dest, addr, pc, gp, sp)`: creates a PS-EXE binary from the input binary stream. The input must be a `File` object, and the output must be a `File` object. The `addr` is the address that the binary will be loaded at. The `pc`, `gp`, and `sp` are the entry point, global pointer, and stack pointer of the binary. The above methods can be used for example the following way: