Race (Ngpocket) Gmenu Selector


bomberman

Member
Joined
Jan 2, 2008
Messages
416
Location
MO - USA
Since the NGPocket has a short list of games I thought it would make an excellent candidate for a gmenu2x selector with screenshots. You can get them here for example. Rename them as your game names (or use the same no-intro dat convertor) and this would get you a matching picture for each. I also enhanced the race startup to allow for a save game for each by backing up and restoring the test.sav file. Be sure to exit so the sync can take place.

------example gmenu2x section file------

description=Neo-Geo Pocket
icon=/mnt/sd/gmenu2x/skins/Liquido/icons/neogeopocket.png
exec=/mnt/sd/game/emulators/ngpocket/race_gmenu.gpe
params=[selPath] [selFile] [selExt]
manual=/mnt/sd/game/emulators/ngpocket/race.man.txt
clock=166
volume=5
selectordir=/mnt/sd/roms/ngpc/
selectorfilter=.ngp,.ngc
selectorscreens=/mnt/sd/game/emulators/ngpocket/pics/
selectoraliases=/mnt/sd/game/emulators/ngpocket/pics/_ngp.txt

------race_gmenu.gpe------

#!/bin/sh

if [ ! -d save ]; then
mkdir save
fi

if [ -f "save/$2.sav" ]; then
cp -f "save/$2.sav" test.sav
fi

./race "$1$2$3"

if [ -d save ]; then
cp -f test.sav "save/$2.sav"
fi

sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu
 
Back
Top