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 withchdman
ISO
: compressed into CHD since pcsx2 supports CHD since 1.7CSO
: converted to ISO and then compressed into CHD withchdman
PS3/Folders
: compressed withmksquashfs
The script uses the following parameters:
Path
: path to batocera share folder (default:/mnt/batocera/roms
)CHDMan
: path tochdman
binary (default:/usr/bin/chdman
)MaxCSO
: path tomaxcso
binary (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 tochdman
binary, e.g.,chdman.exe
MaxCso
: Path tomaxcso
binary, e.g.,maxcso.exe
Systems
: Which systems should be looked for, defaults topsx.ps2,ps3,dreamcast
Silent
: 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.