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.
52 lines (51 loc) • 1.77 kB
TypeScript
interface OutputTokens {
adam?: string;
batocera?: string;
emulationstation?: string;
funkeyos?: string;
jelos?: string;
minui?: string;
mister?: string;
miyoocfw?: string;
onion?: string;
pocket?: string;
retrodeck?: string;
romm?: string;
twmenu?: string;
}
/**
* A class of information about specific game consoles and their names, standard file extensions,
* and how to replace output tokens such as `{pocket}`.
*/
export default class GameConsole {
/**
* Other:
* @see https://emulation.gametechwiki.com/index.php/List_of_filetypes
* @see https://emulation.fandom.com/wiki/List_of_filetypes
* @see https://github.com/OpenEmu/OpenEmu/wiki/User-guide:-Importing
* @see https://github.com/XargonWan/RetroDECK/blob/main/es-configs/es_systems.xml
*/
private static readonly CONSOLES;
readonly datRegex: RegExp;
readonly extensions: string[];
readonly outputTokens: OutputTokens;
constructor(datRegex: RegExp, extensions: string[], outputTokens: OutputTokens);
static getForFilename(filePath: string): GameConsole | undefined;
static getForDatName(consoleName: string): GameConsole | undefined;
private getDatRegex;
private getExtensions;
getAdam(): string | undefined;
getBatocera(): string | undefined;
getEmulationStation(): string | undefined;
getFunkeyOS(): string | undefined;
getJelos(): string | undefined;
getMinUI(): string | undefined;
getMister(): string | undefined;
getMiyooCFW(): string | undefined;
getOnion(): string | undefined;
getPocket(): string | undefined;
getRetroDECK(): string | undefined;
getRomM(): string | undefined;
getTWMenu(): string | undefined;
}
export {};