Commander Genius Launch Menu
-
Hi guys,
just a small 5minute coding. It's a copy of the OpenBOR launch menu created by me. Now used to load some Episodes in Commander Keen (or Commander Genius)
Rule is that every episode resides in it's own directory inports/cgenius
directorySo my ten episodes of this great game looks like this ;)
keen1 - Marooned on Mars (special) (1990) keen2 - The Earth Explodes (1991) keen35 - Keen Dreams - The lost episode (1991) keen3 - Keen Must Die (1991) keen4 - Secret of the Oracle (1992) keen5 - The Armageddon Machine (1992) (v1.4) keen6 - Aliens Ate My Baby Sitter! (1992) (v1.4) keen7 - The keys of Krodacia (Universe is toast EP1) keen8 - Dead in the Desert (Universe is toast EP2) keen9 - Battle of the Brains (Universe is toast EP3)
#!/bin/bash # Commander Genius Launcher - 2D Selector # cyperghost for RetroPie readonly JOY2KEY_SCRIPT="$HOME/RetroPie-Setup/scriptmodules/helpers.sh" readonly cgDIR="$HOME/RetroPie/roms/ports/cgenius" [[ -e $JOY2KEY_SCRIPT ]] || exit sleep 0.5; sudo pkill -f joy2key source "$JOY2KEY_SCRIPT" scriptdir="$HOME/RetroPie-Setup" pushd "$cgDIR" >&2 readarray -t darray < <(find -maxdepth 1 -mindepth 1 -type d) if [[ ${#darray[@]} -gt 0 ]]; then joy2keyStart; sleep 0.2 cmd=(dialog --backtitle " COMMANDER KEEN Episode Launcher -cyperghost " --title " Selection of KEEN episodes " --no-items --stdout --menu "Please select an entry from list to launch:" 16 75 16) choices=$("${cmd[@]}" "${darray[@]##*/}") joy2keyStop; sleep 0.2 [[ $choices ]] || exit choices="games/$choices" # Important to set path to "games" next to cgenius binary fi popd >&2 "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "cgenius" "$choices"
You need to modify the
emulators.cfg
with
nano /opt/retropie/configs/ports/cgenius/emulators.cfg
cgenius = "pushd /opt/retropie/ports/cgenius; ./CGeniusExe dir=%ROM%; popd" default = "cgenius"
Enjoy!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.