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.
22 lines (21 loc) • 827 B
TypeScript
import ProgressBar from '../../console/progressBar.js';
import File from '../../types/files/file.js';
import FileFactory from '../../types/files/fileFactory.js';
import Options from '../../types/options.js';
import Module from '../module.js';
/**
* For every input {@link ROM} file found, attempt to find a matching {@link Header} and resolve its
* header-less checksum.
*/
export default class ROMHeaderProcessor extends Module {
private readonly options;
private readonly fileFactory;
private readonly driveSemaphore;
constructor(options: Options, progressBar: ProgressBar, fileFactory: FileFactory);
/**
* Process each {@link File}, finding any {@link Header} present.
*/
process(inputRomFiles: File[]): Promise<File[]>;
private fileNeedsProcessing;
private getFileWithHeader;
}