UNPKG

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) • 672 B
import DATStatus from '../types/datStatus.js'; import Module from './module.js'; /** * Generate the status for a DAT, and print a short status to the progress bar. */ export default class StatusGenerator extends Module { constructor(progressBar) { super(progressBar, StatusGenerator.name); } /** * Generate a {@link DATStatus} for the {@link DAT}. */ generate(dat, candidates) { this.progressBar.logTrace(`${dat.getName()}: generating ROM statuses`); const datStatus = new DATStatus(dat, candidates); this.progressBar.logTrace(`${dat.getName()}: done generating ROM statuses`); return datStatus; } }