Compress-Games.ps1 is a PowerShell script that compresses disc images according to the support of emulators. The script supports the following formats:
BIN/CUE: compressed into CHD withchdmanISO: compressed into CHD since pcsx2 supports CHD since 1.7CSO: converted to ISO and then compressed into CHD withchdmanPS3/Folders: compressed withmksquashfs
The script uses the following parameters:
Path: path to batocera share folder (default:/mnt/batocera/roms)CHDMan: path tochdmanbinary (default:/usr/bin/chdman)MaxCSO: path tomaxcsobinary (default:~/maxcso/maxcso)Systems: systems to look for (default:psx.ps2,ps3,dreamcast)Silent: suppresses warningsWhatif: shows what the script will do without actually doing it
PS C:> Compress-Games.ps1 -Path "C:\Games\roms"
The command above will try to compress all games in C:\Games\roms according to batocera file structure, e.g., c:\Games\roms\ps3.
Path: Path to batocera share folderCHDMan: Path tochdmanbinary, e.g.,chdman.exeMaxCso: Path tomaxcsobinary, e.g.,maxcso.exeSystems: Which systems should be looked for, defaults topsx.ps2,ps3,dreamcastSilent: Suppresses warningsWhatif: Shows what the script will do without actually doing it
None.
This script follows the guide used from batocera wiki https://wiki.batocera.org/disk_image_compression.