Thread: CHD format
View Single Post
Old 29 July 2020, 12:44   #26
Mikerochip
Registered User
 
Join Date: Sep 2016
Location: Ireland
Posts: 304
Fair enough!

Just if anyone wants it:

Code:
REM Path to CHD hardcoded to prevent problems
REM Path to Mednafen also hardcoded to prevent problems
REM Converts .chd to .cue/bin, runs emu, deletes .cue/bin afterwards

M:\Arcade\MAME\MAMEx64\chdman.exe extractcd -i "%1" -o "%1".cue -ob "%1".bin
M:\Emulatio\NEC_PC_Engine\Mednafen\x64\mednafen.exe -force_module ss "%1".cue
del "%1".cue
del "%1".bin
REM pause
That's the batch file to run mednafen (or anything, really) that doesn't support .chd files.

It just decompresses them, runs mednafen in Sega Saturn mode, then deletes.

To run it in PC Engine, change -force_module ss to -force_module pce or pce_fast and for PS1 use -force_module psx

You can let it autodetect, but I prefer to set it by hand.

and for SSF:

Code:
REM Path to CHDMan hardcoded to prevent problems
REM Path to SSF also hardcoded to prevent problems
REM Path to Daemon Tools uses shot file name, to prevent problems
REM Converts .chd to .cue/bin, mounts with DaemonTools, runs emu, deletes .cue/bin afterwards

M:\Arcade\MAME\MAMEx64\chdman.exe extractcd -i "%1" -o "%1".cue -ob "%1".bin
M:\Emulatio\NEC_PC_Engine\Mednafen\x64\mednafen.exe -force_module ss %1.cue

C:\Progra~1\DAEMON~1\DTAgent.exe -mount dt, 0, "%1"
M:\Emulatio\Sega_Saturn\SSF\SSF.exe
C:\Progra~1\DAEMON~1\DTAgent.exe -unmount 0

del "%1".cue
del "%1".bin
REM pause
You may need to remove the " from the batch file, depending on the emulator/front end you use, if it supplies it's own double quotes.

Last edited by Mikerochip; 29 July 2020 at 13:02. Reason: Extra info!
Mikerochip is offline  
 
Page generated in 0.20401 seconds with 11 queries