Page 1 of 1

Unable to load rom directly from terminal (MAC)

Posted: Mon Feb 13, 2012 9:09 pm
by kesm
Hi,

I would like to use snes9x with XBMC (a media player, that allows to launch roms directly by command line) but I'm unable to launch a game with that command line in terminal :

Code: Select all

/Applications/Snes9x.app/Contents/MacOS/Snes9x /path/game.smc
Snes9x is launched but rom isn't loaded.

Did I miss something?

Is it a bug?

I'm on MAC OSX Lion 10.7.3

I'm able to launch roms if I use the menu from snes9x

Hope you can help me,

Thanks

Posted: Tue Feb 14, 2012 6:12 am
by Camo_Yoshi
Is the space in that path intentional?

Posted: Tue Feb 14, 2012 7:20 am
by kesm
The space before "/path/game.smc" ?

Yes it is intendeed, I use the same command line than explains in http://wiki.arcadecontrols.com/wiki/Sne ... Parameters but for mac,

I also tried with quotes but result is the same

Posted: Wed Feb 15, 2012 1:02 pm
by zones
Snes9x for Mac doesn't support command-line options.
To open a ROM from the Terminal, use 'open' command instead.

Posted: Wed Feb 15, 2012 6:26 pm
by kesm
What is the syntax to open a rom from terminal?

Thanks

Posted: Wed Feb 15, 2012 11:38 pm
by Camo_Yoshi
What part of "doesn't support command line options" do you not understand?

Posted: Thu Feb 16, 2012 1:07 am
by odditude
Camo_Yoshi wrote:What part of "doesn't support command line options" do you not understand?
easy there, big guy. i think he's asking for clarification on this:
zones wrote:To open a ROM from the Terminal, use 'open' command instead.

Posted: Thu Feb 16, 2012 7:09 am
by kesm
Hi,

Yes I was talking about the second sentence of zones

Thanks

Posted: Thu Feb 16, 2012 2:15 pm
by odditude
try:

Code: Select all

open -a /Applications/Snes9x.app /path/game.smc
if that doesn't work, you'll need to

Code: Select all

man open
to view the documentation for open or wait for zones's reply. (i don't have access to a mac, and the most recent man pages on developer.apple.com are for 10.6.6).

Posted: Thu Feb 16, 2012 7:18 pm
by kesm
Thanks, works great with your code!