scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
835 stars 96 forks source link

Support XBMC style commands #124

Open scottrice opened 10 years ago

scottrice commented 10 years ago

I should have done this from the beginning, but XBMC already has a system for adding emulators and their parameters. I should use the same system so that all of the existing infrastructure for emulators on XBMC can be applied to Ice.

marcusmoller commented 10 years ago

Do you have any links on information about this?

scottrice commented 10 years ago

Sure thing. Looking back, I see I described this issue terribly.

There is a plugin for xbmc called romcollectionbrowser which does something similar to Ice (in that it allows a frontend to launch games). romcollectionbrowser also allows people to add emulators and specify the commands with which it is launched. Instead of the 'command' setting that emulators have on Ice, romcollectionbrowser does 'Emulator Params', which is just everything following the emulator in the command. They also have an interesting syntax to specify different values to be substituted into the command.

You can find a list of the options available to here

https://code.google.com/p/romcollectionbrowser/wiki/EditRomCollectionLaunchGames

I'm not sure how many of those options will be useful to Ice (like there is no differentiation right now between the name of the game and the filename, though that could come later), but I think it would still be good to implement support for that style of command so all of the information currently out there about how to launch emulators from XBMC can be applied to Ice.

In practice, I imagine this will just be another setting (emulator params?) in emulators.txt

[ZSNES]
location=/Path/to/zsnes
emulator params=-m %rom%