Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.07k stars 904 forks source link

run chd with ES on windows #671

Open 0zzy80 opened 7 years ago

0zzy80 commented 7 years ago

Hi this is my command line to run mame: C:\Users\al\.emulationstation\Mame0172\mame0172.exe -inipath C:\Users\al\.emulationstation\mame0172\INI -rompath C:\Users\al\.emulationstation\roms\MAME %ROM%

It works with all roms, but not with chd files. Chd files are placed under a subdir on rompath, named as the rom file. The es log say:

C:\Users\al\.emulationstation\Mame0172\mame0172.exe  -inipath C:\Users\al\.emulationstation\mame0172\INI -rompath C:\Users\al\.emulationstation\roms\MAME "C:\Users\al\.emulationstation\roms\mame\kinst.zip"
lvl1:   ...launch terminated with nonzero exit code 2!

If i copy and paste the log output in a cmd prompt, chd file is loaded and game start. What's wrong?

AnthraxBass commented 7 years ago

You need a workaround, since MAME only running properly when you start cmd inside MAME root. ES is not doing the necessary navigation, hence the failure. I'm attaching here my config, try to compare the files with yours. mameLauncher.bat should be placed at the same folder as ES binary. Location of mame: D:\Games\mame0184_32\ Location of ES: D:\Games\emulationstation_win32 es_files.zip