Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add new output tokens {consoleBrand}, {consoleName}, {consoleAbbrName} #1202

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
10 changes: 10 additions & 0 deletions docs/output/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ You can use some information about the input and output file's name & location:
- `{outputName}` the output file's filename without its extension
- `{outputExt}` the output file's extension

## Console information

You can use some information about the console:

- `{consoleBrand}` the console brand name
- `{consoleName}` the console complete name
- `{consoleAbbrName}` the console abbreviated name



## Specific hardware

To help sort ROMs into unique file structures for popular frontends & hardware, `igir` offers a few specific tokens:
Expand Down
4 changes: 4 additions & 0 deletions src/modules/argumentsParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,10 @@ Advanced usage:
{outputName} The output file's filename without extension
{outputExt} The output file's extension

{consoleBrand} The console brand name (e.g. "Nintendo")
{consoleName} The console complete name (e.g. "Game Boy")
{consoleAbbrName} The console abbreviated name (e.g. "gb")

{adam} The ROM's emulator-specific /ROMS/* directory for the 'Adam' image (e.g. "GB")
{batocera} The ROM's emulator-specific /roms/* directory for Batocera (e.g. "gb")
{es} The ROM's emulator-specific /roms/* directory for the 'EmulationStation' image (e.g. "gb")
Expand Down
Loading
Loading