I have a layout with just one emulator: MAME. This is launched with button 1 in my control panel. Now, in controller, keyboard, external applications, I can tell MaLa to use a different version of MAME if I use Enter in my keyboard instead or button 1 to run the selected game. Is there any way I can configure this in order to use button 2 in my control panel. Also, when using this method, MAME is not totally hidden, so you can see the window at the very beginning of the emulator execution. Is there any way to fix that?
PD: I already know the way to pre-setup this for certain roms, but I want a way to do this manually too.
Create a text file called mala.cmd in your MaLa folder. Now, in options, basic, mame executable, instead of mame.exe write the path to your .cmd file (eg. d:\mala\mala.cmd). Edit mame.cmd and add this:
if %1==pacman goto mameold
if %1==name-of-rom-here goto mameold
if %1==name-of-rom-here goto mameold
if %1==name-of-rom-here goto mameold
if %1==name-of-rom-here goto mameold
d:
cd\
cd d:\mame
mame %1 %2 %3 %4 %5 %6
goto end
:mameold
d:
cd\
cd d:\mameold
mame %1 %2 %3 %4 %5 %6
cd\
goto end
:end