Skip to content

Commit

Permalink
Feature: console token updates (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Jun 16, 2024
1 parent aa13e5e commit 090069e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/types/gameConsole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ export default class GameConsole {
retrodeck: 'gameandwatch',
romm: 'game-and-watch',
}),
new GameConsole(/GameCube/i, [/* '.iso' */], {
new GameConsole(/GameCube/i, ['.gcm', '.gcz'], {
batocera: 'gc',
emulationstation: 'gc',
jelos: 'gamecube',
Expand All @@ -601,7 +601,7 @@ export default class GameConsole {
romm: 'gb',
twmenu: 'gb',
}),
new GameConsole(/GBA|Game ?Boy Advance/i, ['.gba', '.srl'], {
new GameConsole(/GBA|Game ?Boy Advance/i, ['.gba'], {
adam: 'GBA',
batocera: 'gba',
emulationstation: 'gba',
Expand Down Expand Up @@ -661,13 +661,13 @@ export default class GameConsole {
romm: 'nds',
twmenu: 'nds',
}),
new GameConsole(/(\W|^)NDSi(\W|$)|Nintendo DSi([Ww]are)?/i, [], {
new GameConsole(/(\W|^)NDSi(\W|$)|Nintendo DSi([Ww]are)?/i, ['.dsi'], {
emulationstation: 'nds',
retrodeck: 'nds',
romm: 'nintendo-dsi',
twmenu: 'dsiware',
}), // try to map DSiWare
new GameConsole(/(\W|^)NES(\W|$)|Famicom|Nintendo Entertainment System/i, ['.nes', '.nez'], {
new GameConsole(/(\W|^)NES(\W|$)|Famicom|Nintendo Entertainment System/i, ['.fc', '.nes', '.nez'], {
adam: 'FC',
batocera: 'nes',
emulationstation: 'nes',
Expand Down Expand Up @@ -713,7 +713,7 @@ export default class GameConsole {
onion: 'SUFAMI',
retrodeck: 'sufami',
}),
new GameConsole(/(\W|^)SNES(\W|$)|Super (Nintendo Entertainment System|Famicom)/i, ['.sfc', '.smc'], {
new GameConsole(/(\W|^)SNES(\W|$)|Super (Nintendo Entertainment System|Famicom)/i, ['.fig', '.sfc', '.smc', '.snes'], {
adam: 'SFC',
batocera: 'snes',
emulationstation: 'snes',
Expand Down
3 changes: 0 additions & 3 deletions test/outputFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ describe('token replacement', () => {
['game.gb', path.join('Roms', 'Game Boy (GB)', 'game.gb')],
['game.sgb', path.join('Roms', 'Game Boy (GB)', 'game.sgb')],
['game.gba', path.join('Roms', 'Game Boy Advance (GBA)', 'game.gba')],
['game.srl', path.join('Roms', 'Game Boy Advance (GBA)', 'game.srl')],
['game.gbc', path.join('Roms', 'Game Boy Color (GBC)', 'game.gbc')],
['game.nes', path.join('Roms', 'Nintendo Entertainment System (FC)', 'game.nes')],
['game.nez', path.join('Roms', 'Nintendo Entertainment System (FC)', 'game.nez')],
Expand Down Expand Up @@ -571,7 +570,6 @@ describe('token replacement', () => {
['game.sgb', path.join('roms', 'GB', 'game.sgb')],
['game.gbc', path.join('roms', 'GB', 'game.gbc')],
['game.gba', path.join('roms', 'GBA', 'game.gba')],
['game.srl', path.join('roms', 'GBA', 'game.srl')],
['game.nes', path.join('roms', 'NES', 'game.nes')],
['game.fds', path.join('roms', 'NES', 'game.fds')],
['game.sfc', path.join('roms', 'SNES', 'game.sfc')],
Expand Down Expand Up @@ -812,7 +810,6 @@ describe('token replacement', () => {
['game.sgb', path.join('roms', 'gb', 'game.sgb')],
['game.gbc', path.join('roms', 'gb', 'game.gbc')],
['game.gba', path.join('roms', 'gba', 'game.gba')],
['game.srl', path.join('roms', 'gba', 'game.srl')],
['game.nds', path.join('roms', 'nds', 'game.nds')],
['game.nes', path.join('roms', 'nes', 'game.nes')],
['game.sfc', path.join('roms', 'snes', 'game.sfc')],
Expand Down

0 comments on commit 090069e

Please sign in to comment.