You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When processing a DAT file that only has 1 game in it, hundreds of game entries are erroneously created. An example is given with a current export from no-intro DAT-o-MATIC of a DAT file for the NEC PC-88 (Flux).
Expected behavior
A DAT with 1 game in it should produce an output with a single game.
modules/datScanner.ts has a special case for treating a DAT file with 1 game as multiple games in order to work with libretro bios files. But this breaks the case when a DAT file only has 1 game like the no-intro NEC - PC-88 (Flux) set.
Here is the relevant code that breaks this case (datScanner.ts lines 56 through 65):
// Special case: if the DAT has only one game but a large number of ROMs, assume each of those// ROMs should be a separate game. This is to help parse the libretro BIOS System.dat file// which only has one game for every BIOS file, even though there are 90+ consoles.if(dat.getGames().length===1&&dat.getGames()[0].getRoms().length>10){constgame=dat.getGames()[0];dat=newLogiqxDAT(dat.getHeader(),dat.getGames()[0].getRoms().map((rom)=>game.withProps({name: rom.getName(),rom: [rom],})));}
The code should probably distinguish between game DATs and BIOS DATs to handle both cases differently.
The text was updated successfully, but these errors were encountered:
emmercm
added
bug
A confirmed issues that needs fixing
and removed
potential-bug
A potential issue that needs confirmation and/or triage
labels
Jul 11, 2024
Paste the command
npx igir@latest copy test clean -vvv --dat "proper1g1r-collection/DATs/NEC - PC-88*/**/Retool.dat" --input "proper1g1r-collection/ROMs" --output "${OUTPUT}/{retrodeck}" --overwrite-invalid --no-bios
Describe the bug
When processing a DAT file that only has 1 game in it, hundreds of game entries are erroneously created. An example is given with a current export from no-intro DAT-o-MATIC of a DAT file for the NEC PC-88 (Flux).
Expected behavior
A DAT with 1 game in it should produce an output with a single game.
Debug logs
DAT(s) used
https://archive.org/download/proper1g1r-collection/DATs/NEC%20-%20PC-88%20%28Flux%29.zip/NEC%20-%20PC-88%20%28Flux%29%2FNEC%20-%20PC-88%20%28Flux%29%20%2820220725-151518%29.dat
igir version
v2.9.1
Node.js version
v22.4.0
Operating system
Ubuntu
Additional context
modules/datScanner.ts has a special case for treating a DAT file with 1 game as multiple games in order to work with libretro bios files. But this breaks the case when a DAT file only has 1 game like the no-intro NEC - PC-88 (Flux) set.
Here is the relevant code that breaks this case (datScanner.ts lines 56 through 65):
The code should probably distinguish between game DATs and BIOS DATs to handle both cases differently.
The text was updated successfully, but these errors were encountered: