Skip to content

Linux and OSX Launcher example (eng)

Romain Gay edited this page Sep 20, 2015 · 8 revisions

So - you're on OSX or Linux and you don't have a launcher ?
No problem. Use this script:

#!/bin/bash

if [ "$1" == "mame" ]; then
  echo "launching mame with game $2";
  cd /directory/containing/mame;
  ./mame64 $2;

elif [ "$1" == "genesis" ]; then
  echo "launching gens with game $2";
  cd /directory/containing/gens;
  ./gens $2;

# elif
#   etc...

else
  echo "system not supported ($1) (game: $2)";
fi

Configure to your needs and save as launcher.sh.
Don't forget to chmod +x launcher.sh.

For zspin config, use these values:

Parameter value
Launcher binary /bin/bash (you can type it directly in the field)
Launcher params /directory/containing/launcher.sh {system} {rom}

Clone this wiki locally