Gens command line parameters
Following a post on my forum, and noticing several searches referred from google with gens+command+line in them this may help quite a few people trying to get gens to launch from the command line in linux.
In my emenulate page I mention I hacked my way around the command line parameters. I’m no expert C programmer so “hack” is an appropriate term! I’ve sourced the original code from portage, gentoo’s package management system, which I think is this on sourceforge, but I’m not 100% sure.
I made the changes about 15 months ago, so please forgive me for not remembering exactly what I’ve modified. The changes allow you to load a ROM up on the command line (–rompath switch and filename at the end), specify that you want Escape to quit you out immediately (–quickexit, handy for Mame cabinets), and that you want it to start fullscreen without the GUI (–fs).
Example,
gens --rompath ~/.gens/roms/ --quickexit --fs Sonic.BIN
Click here to download the sourcecode for my patched version of gens.
To build and install, extact the tar.gz and from the GensForLinux folder run
./configure
make
make install (as su)
make clean
gens will now be installed as /usr/local/bin/gens

UPDATE 19/05/2007 : This code has now been patched in to the Gens for Linux - MythGame Edition project at http://mythtv.wbond.net/gens_for_linux_mythgame_edition/.
August 31st, 2006 at 5:54 pm
I just compiled gens using the above instructions and sourcecode on Ubuntu 6.06 and Centos 4.4 (plan on trying Gentoo next) and was successful both times with Brian’s patch at using the command line successfully. These changes are perfect for a Linux based arcade cabinet using gens with an universal menu system.
I would like to extend my gratitude for his assitance with gens and his code for emenulate.
Thanks again!