Skip to content

Patching ​

Provides methods for patching ROM files.

Kind: Static class

Namespace: CrowdControl.Games

Public Static Functions

ValueTuple

BPS(Stream romFile, byte[] patchBytes)

Applies a BPS patch to a ROM file.

ValueTuple

BPS(Stream romFile, byte[] patchBytes, bool useChecksum)

Applies a BPS patch to a ROM file.

ValueTuple

IPS(Stream romFile, byte[] patchBytes)

Applies an IPS patch to a ROM file.

ValueTuple

IPS(Stream romFile, byte[] patchBytes, bool useChecksum)

Applies an IPS patch to a ROM file.

ValueTuple

IPS(IROMProcessor connector, byte[] patchBytes)

Applies an IPS patch to a ROM file.

ValueTuple

XDELTA(Stream romFile, byte[] patchBytes)

Applies an XDELTA patch to a ROM file.

ValueTuple

XDELTA(Stream romFile, byte[] patchBytes, bool useChecksum)

Applies an XDELTA patch to a ROM file.

ValueTuple

Truncate(Stream romFile, long length)

Truncates a ROM file to a specified length.

ValueTuple

Truncate(Stream romFile, long offset, long length)

Truncates a ROM file to a specified length.

bool

Fingerprint(Stream romFile, long address, byte[] fingerprint)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, ReadOnlySpan fingerprint)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, sbyte fingerprint)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, byte fingerprint)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, short fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, ushort fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, int fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, uint fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, long fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

bool

Fingerprint(Stream romFile, long address, ulong fingerprint, Endianness endianness)

Checks if a ROM file matches a specified fingerprint.

string

MD5(Stream romFile)

Calculates the MD5 hash of a ROM file.

bool

MD5(Stream romFile, string hash)

Calculates the MD5 hash of a ROM file.

ValueTuple

Ignore(Stream romFile, byte[] patchBytes)

Ignores a patch operation. This is a placeholder method that does nothing.

ValueTuple

Ignore(IROMProcessor connector, byte[] patchBytes)

Ignores a patch operation. This is a placeholder method that does nothing.