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.
20 lines (19 loc) • 747 B
TypeScript
import ProgressBar from '../../console/progressBar.js';
import DAT from '../../types/dats/dat.js';
import Patch from '../../types/patches/patch.js';
import WriteCandidate from '../../types/writeCandidate.js';
import Module from '../module.js';
/**
* For each {@link Patch} that matches a {@link ROM}, generate a new {@link Game} and
* {@link WriteCandidate} of that {@link Game}.
*/
export default class CandidatePatchGenerator extends Module {
constructor(progressBar: ProgressBar);
/**
* Generate the patched candidates.
*/
generate(dat: DAT, candidates: WriteCandidate[], patches: Patch[]): Promise<WriteCandidate[]>;
private static indexPatchesByCrcBefore;
private build;
private buildPatchedCandidates;
}