Can You Make An .ini File To Load A Specific Game Rom


Bender33

Still Fresh
Joined
Feb 19, 2011
Messages
13
I'd like to make an .ini file that loads a specific game from for a specific Nes or Mame rom
any way to do that?

or even an autorun.gpu program to load into a specific game rom

any help would be much appreciated!!
 
Here is an example of an autorun.gpu I have that loads PicoDrive instead of the menu at boot.


#!/bin/sh

cd /mnt/sd/game/PicoDrive
exec ./PicoDrive.gpe

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu


Change your paths accordingly and name it autorun.gpu and put it in the root of you sd card.

I have done this for many emulators and have tested this one one more time before posting it.
 
qbertaddict,

Thanks for the info!
I have been able to get that to work, but I want to go a step further and get a specific rom to load

any ideas on that?
 
Bender33 said:
qbertaddict,

Thanks for the info!
I have been able to get that to work, but I want to go a step further and get a specific rom to load

any ideas on that?
Not all emus support launching via command line but

exec ./PicoDrive.gpe /path to game/gamename

That should do it
 
Last edited by a moderator:
I tried that and it gets hung on the loading screen

this is the autorun text I have:

cd /mnt/sd/PicoDrive
exec ./PicoDrive.gpe /mnt/sd/PicoDrive/Dragon's Lair.iso

Any suggestions?
 
You need to quote arguments that contain spaces:
Code:
exec ./PicoDrive.gpe "/mnt/sd/PicoDrive/Dragon's Lair.iso"
Without the quotes, the file name is interpreted as two arguments "/mnt/sd/PicoDrive/Dragon's" and "Lair.iso".

Also make sure you use Unix line endings for the gpe/gpu file (ie you can't use Notepad to write it).
 
hmn said:
You need to quote arguments that contain spaces:
Code:
exec ./PicoDrive.gpe "/mnt/sd/PicoDrive/Dragon's Lair.iso"
Without the quotes, the file name is interpreted as two arguments "/mnt/sd/PicoDrive/Dragon's" and "Lair.iso".

Also make sure you use Unix line endings for the gpe/gpu file (ie you can't use Notepad to write it).

hmn,

thank you so much for the reply!
I'll try it out
an suggestions on a mac text editor that uses Unix line endings
I use TextEdit and I can get the regular (load directly into PicoDrive) autorun.gpe to run fine

EDIT: thanks so much, worked flawlessly!!!!!
TextEdit worked fine
 
Last edited by a moderator:
Does anyone know how to this for Mame4All?

this text launches to the menu, but not the rom


cd /mnt/sd/Mame4all2-5
exec ./mame.gpe /mnt/sd/Mame4all2-5/roms/dkong.zip
 
Did anyone make it work? It looks like there's no way to pass the game parameter (e.g. dkong.zip) to mame.gpe?
Is this a exec or mame.gpe limit? Is there another way to start up a mame game with a script? Thanks.
 
Hi all,

I'd really like to do this with scripts running from a Favorites Menu, via the explorer if need be. Any way to have separate scripts to launch particular games?

Thanks.
 
Back
Top