Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Alternative MAME version, from the control panel  (Read 2989 times)

0 Members and 1 Guest are viewing this topic.

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Alternative MAME version, from the control panel
« on: August 10, 2009, 05:40:35 am »
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

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Alternative MAME version, from the control panel
« Reply #1 on: August 10, 2009, 05:40:15 pm »
What window are you referring to that you want to be hidden?

Also did you know that you don't have to add the "if %1"  line for every rom, but you can just put these roms in their own folder and use only one "if %1" line using this method:

http://forum.arcadecontrols.com/index.php?topic=68419.0

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Re: Alternative MAME version, from the control panel
« Reply #2 on: August 11, 2009, 02:16:47 am »
When MAME is launched from the emulator, you shouldn't see the command prompt window. MaLa, unlike EmuLoader, for instance, does hide that screen, so it's more elegant. However, when using the 'external application' method for running a game, you can see that window for a millisecond. Anyway, it's not a drama, but I'd like to know if it can be fixed. Maybe a MAME command line parameter?

As regard your idea about the code, I don't want to have my roms in different folders. This is just for a dozen of games, so it's ok as it is.