sdlmame and xmame living together

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

sdlmame and xmame living together

Postby nellistc » Thu Jan 10, 2008 4:46 am

Hi,

In light of recent improvements to Donkey Kong and my lack of a decent PC for mame, I wanted to be able to run sdlmame or xmame for any given game.

Initially, I kept sdlmame as the default and setup xmame as another emulator. This meant switching between emulators in wahcade when wanting to run one or the other. An alternative is to have a shell script as the path for MAME and pass parameters using the commandline format variables. In my case, the relevant part of mame.ini looks like this:

Code: Select all
### Execution Settings ###
emulator_executable                     /usr/local/bin/runmame
commandline_format                      SDL [name]
alt_commandline_format_1                x11 [name]

and /usr/local/bin/runmame looks like this:

Code: Select all
#!/bin/sh

SDLMAME=/usr/games/sdlmame
XMAME=/usr/local/bin/xmame.x11

if [ $# -ne 2 ]
then
        exit
fi

if [ "$1" = "SDL" ]
then
        exec $SDLMAME $2
fi

if [ "$1" = "x11" ]
then
        exec $XMAME $2
fi

All you need to do then is assign a button to LAUNCH_GAME_WITH_OPTIONS1 and you're set.


cheers.
nellistc
 
Posts: 6
Joined: Wed Apr 25, 2007 8:50 am

Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 1 guest

cron