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.
23 lines (22 loc) • 758 B
TypeScript
import ProgressBar from '../../console/progressBar.js';
import File from '../../types/files/file.js';
import IndexedFiles from '../../types/indexedFiles.js';
import Options from '../../types/options.js';
import Module from '../module.js';
/**
* This class indexes {@link File}s by their {@link File.hashCode}, and sorts duplicate files by a
* set of preferences.
*/
export default class ROMIndexer extends Module {
protected readonly options: Options;
constructor(options: Options, progressBar: ProgressBar);
/**
* Index files.
*/
index(files: File[]): IndexedFiles;
private sortMap;
/**
* This ordering should match {@link FileFactory#entriesFromArchiveExtension}
*/
private static archiveEntryPriority;
}