igir
Version:
🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
21 lines (20 loc) • 770 B
TypeScript
import File from '../files/file.js';
import Patch from './patch.js';
declare const APSN64PatchType: {
readonly SIMPLE: 0;
readonly N64: 1;
};
type APSN64PatchTypeValue = (typeof APSN64PatchType)[keyof typeof APSN64PatchType];
/**
* @see https://github.com/btimofeev/UniPatcher/wiki/APS-(N64)
*/
export default class APSN64Patch extends Patch {
static readonly FILE_SIGNATURE: Buffer<ArrayBuffer>;
private readonly patchType;
protected constructor(patchType: APSN64PatchTypeValue, file: File, crcBefore: string, sizeAfter: number);
static patchFrom(file: File): Promise<APSN64Patch>;
createPatchedFile(inputRomFile: File, outputRomPath: string): Promise<void>;
private static writeOutputFile;
private static applyPatch;
}
export {};