Unable to load rom directly from terminal (MAC)

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
kesm
Snes9x White Belt
Posts: 5
Joined: Mon Feb 13, 2012 8:58 pm

Unable to load rom directly from terminal (MAC)

Post 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
User avatar
Camo_Yoshi
Snes9x Purple belt
Posts: 922
Joined: Thu Nov 08, 2007 7:59 pm

Post by Camo_Yoshi »

Is the space in that path intentional?
Snes9x FAQs | Forum Rules
What operating system are you using? 32 or 64bit? Version of Snes9x? Is the text at the bottom of the window white when you load the game?
These suggestions are usually the solution to your issue!
kesm
Snes9x White Belt
Posts: 5
Joined: Mon Feb 13, 2012 8:58 pm

Post 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
User avatar
zones
Official Mac OSX Porter/Dev
Posts: 908
Joined: Sat May 15, 2004 11:58 pm
Location: Japan

Post by zones »

Snes9x for Mac doesn't support command-line options.
To open a ROM from the Terminal, use 'open' command instead.
kesm
Snes9x White Belt
Posts: 5
Joined: Mon Feb 13, 2012 8:58 pm

Post by kesm »

What is the syntax to open a rom from terminal?

Thanks
User avatar
Camo_Yoshi
Snes9x Purple belt
Posts: 922
Joined: Thu Nov 08, 2007 7:59 pm

Post by Camo_Yoshi »

What part of "doesn't support command line options" do you not understand?
Snes9x FAQs | Forum Rules
What operating system are you using? 32 or 64bit? Version of Snes9x? Is the text at the bottom of the window white when you load the game?
These suggestions are usually the solution to your issue!
odditude
Snes9x Green Belt
Posts: 445
Joined: Tue May 03, 2011 2:35 pm

Post 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.
kesm
Snes9x White Belt
Posts: 5
Joined: Mon Feb 13, 2012 8:58 pm

Post by kesm »

Hi,

Yes I was talking about the second sentence of zones

Thanks
odditude
Snes9x Green Belt
Posts: 445
Joined: Tue May 03, 2011 2:35 pm

Post 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).
kesm
Snes9x White Belt
Posts: 5
Joined: Mon Feb 13, 2012 8:58 pm

Post by kesm »

Thanks, works great with your code!
Post Reply