Need help with BAT file to use different MAME versions for certain games
Posted: Thu May 18, 2017 7:07 pm
Hi all,
I have MAME0169 fully working with mGalaxy but have a handful of games that I want to use MAME0162 for. I did some searching online and found that I could create a BAT file to launch a different mame.exe file for specific games, but I can't get it working.
Here's my setup:
Under C:\Program Files I have a folder called mame. Inside that folder I have separate folders for mame0162 and mame0169, both include a mame.exe and a mame.ini file.
I created a BAT file (using the format I found in this thread), used a utility to convert it to an EXE, and put it in C:\Program Files\mame. I then went into Runway and selected this new EXE as the App Path for MAME. The EXE file looks like this:
if %1==kidniki goto mame0162
rem default MAME
cd mame0169
mame %1 %2 %3 %4 %5 %6
cd ..
goto end
:mame0162
cd mame0162
mame %1 %2 %3 %4 %5 %6
cd ..
goto end
:end
The issue I'm having is that mGalaxy always uses the default (no match) path and launches mame0169. I've tried it with a bunch of different games and had the same results.
I'm pretty sure the issue is with my BAT file but I'm not too script-savvy and can't figure it out. Can anyone help?
Thanks!
JP
I have MAME0169 fully working with mGalaxy but have a handful of games that I want to use MAME0162 for. I did some searching online and found that I could create a BAT file to launch a different mame.exe file for specific games, but I can't get it working.
Here's my setup:
Under C:\Program Files I have a folder called mame. Inside that folder I have separate folders for mame0162 and mame0169, both include a mame.exe and a mame.ini file.
I created a BAT file (using the format I found in this thread), used a utility to convert it to an EXE, and put it in C:\Program Files\mame. I then went into Runway and selected this new EXE as the App Path for MAME. The EXE file looks like this:
if %1==kidniki goto mame0162
rem default MAME
cd mame0169
mame %1 %2 %3 %4 %5 %6
cd ..
goto end
:mame0162
cd mame0162
mame %1 %2 %3 %4 %5 %6
cd ..
goto end
:end
The issue I'm having is that mGalaxy always uses the default (no match) path and launches mame0169. I've tried it with a bunch of different games and had the same results.
I'm pretty sure the issue is with my BAT file but I'm not too script-savvy and can't figure it out. Can anyone help?
Thanks!
JP