Class Cps2Rom

Hierarchy

  • Cps2Rom

Constructors

Methods

  • Converts the ROM to Darksoft format and stores the result in darksoftRom in .zip format. Must call read() before calling this.

    Returns Promise<Cps2Rom>

  • Decrypts the opcodes and stores the result in decryptedOpcodes. Must call read() and processExecutable() before calling this.

    Returns Promise<Cps2Rom>

  • Returns undefined | Uint8Array

    The original (unmodified) binary of the executable parts of ROM

  • Returns undefined | File

    The ROM in Darksoft format, if it has been converted

  • Returns undefined | Uint8Array

    The decrypted opcodes of the executable parts of ROM, if the ROM was decrypted

  • Returns undefined | Uint8Array

    The modified ROM executable binary, if the ROM was patched

  • Returns undefined | File[]

    The files that were modified in patching, if the ROM was patched

  • Returns undefined | File

    The patched ROM, if the ROM was patched

  • Gets some information about the state the ROM is in as it pertains to reading, processing, etc.

    Returns {
        hasBeenRead: boolean;
        processedRegions: string[];
    }

    The state

    • hasBeenRead: boolean
    • processedRegions: string[]
  • Returns File

    The ROM zip originally supplied to the constructor of this object.

  • Patches the ROM and stores the result in modifiedRom. Must call read() and processExecutable() before calling this.

    Parameters

    • patchFile: File

      The .mra file to patch with

    Returns Promise<Cps2Rom>

  • Processes the executable region of the ROM. This processes the executable region and stores the concatenated binary in binary. Must call read() before calling this.

    Returns Promise<Cps2Rom>

Generated using TypeDoc