void-packages/srcpkgs/sdlmame/files/sdlmess.sh
jbu 6a7d65dfcb sdlmame: update to 0.161
+ Depend on lua-devel for new build system (genie)
+ Fix xlint warnings
+ Add sub package sdlmess for Multi Emulator Super System
+ Add missing tools unidasm (mame), castool floptool imgtool (mess)
+ Split man pages between sdlmame and sdlmess
2015-05-03 19:54:43 +02:00

45 lines
1.4 KiB
Bash

#!/bin/sh
exec_mess() {
/usr/share/sdlmess/sdlmess \
-artpath "$HOME/.mess/artwork;artwork" \
-ctrlrpath "$HOME/.mess/ctrlr;ctrlr" \
-inipath $HOME/.mess/ini \
-rompath $HOME/.mess/roms \
-samplepath $HOME/.mess/samples \
-cfg_directory $HOME/.mess/cfg \
-comment_directory $HOME/.mess/comments \
-diff_directory $HOME/.mess/diff \
-input_directory $HOME/.mess/inp \
-nvram_directory $HOME/.mess/nvram \
-snapshot_directory $HOME/.mess/snap \
-state_directory $HOME/.mess/sta \
-video opengl \
-createconfig
}
if [ "$1" = "--newini" ]; then
echo "Rebuilding the ini file at $HOME/.mess/sdlmess.ini"
echo "Modify this file for permanent changes to your SDLMESS"
echo "options and paths before running SDLMESS again."
cd $HOME/.mess
if [ -e mess.ini ]; then
echo "Your old ini file has been renamed to mess.ini.bak"
mv mess.ini mess.ini.bak
fi
exec_mess
elif [ ! -e $HOME/.mess ]; then
echo "Running SDLMESS for the first time..."
echo "Creating an ini file for SDLMESS at $HOME/.mess/mess.ini"
echo "Modify this file for permanent changes to your SDLMESS"
echo "options and paths before running SDLMESS again."
mkdir $HOME/.mess
for f in artwork cfg comments ctrlr diff ini ip nvram \
samples snap sta roms; do
mkdir $HOME/.mess/${f}
done
cd $HOME/.mess && exec_mess
else
cd /usr/share/sdlmess
./sdlmess "$@"
fi