2010-11-06, 19:17
Angelscry Wrote:I think it will be to complicated, for me, actually, to do this. It seems that you are under Windows. If so, maybe you can try to create and use .BAT files to simply do it. For example :
First, create a launcher.bat file that will call other .BAT files. It will be your launcher.
launcher.bat
Code:call %1
Then for each PC games create a corresponding .BAT file that will launch the game and put them into the same directory (named roms for example). Each .BAT files will be like this:
game1.bat
game2.batCode:"C:\Program Files\game1\game1.exe"
Code:"C:\Program Files\game2\game2.exe"
Then the launchers.xml file for your PC games will be like this :
launchers.xml
Code:<launcher>
<name>PC Compatible</name>
<application>C:\Users\User\Documents\xbmc\launcher.bat</application>
<args></args>
<rompath>C:\Users\User\Documents\xbmc\roms\</rompath>
<romext>bat</romext>
<platform>IBM PC Compatible</platform>
<thumb>C:\Users\User\Documents\xbmc\logo.png</thumb>
<fanart>C:\Users\User\Documents\xbmc\libm_pc.png</fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<wait>true</wait>
<roms>
<rom>
<name>Game 1</name>
<filename>C:\Users\User\Documents\xbmc\roms\Game1.bat</filename>
<platform>IBM PC Compatible</platform>
<thumb>C:\Users\User\Documents\xbmc\thumbs\Game1.jpg</thumb>
<fanart>C:\Users\User\Documents\xbmc\fanarts\Game2.jpg</fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<gameplot></gameplot>
</rom>
<rom>
<name>Game 2</name>
<filename>C:\Users\User\Documents\xbmc\roms\Game2.bat</filename>
<platform>IBM PC Compatible</platform>
<thumb>C:\Users\User\Documents\xbmc\thumbs\Game2.jpg</thumb>
<fanart>C:\Users\User\Documents\xbmc\fanarts\Game2.jpg</fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<gameplot></gameplot>
</rom>
</roms>
</launcher>
It may works. It is a very long time that I have not use Windows. Maybe you will encounter some fullscreen transition problems. You have to found the good command line to launch the games. But if it works, it will do exactly what you want. You can maybe also ask your question into the Windows Specific Support forum. There is surely a better way to do it.
Thanks for the help, I got this working. I found one thing which improves it a little, and I thought I should share it with the other windows users. Instead of the "launcher.bat", I use a program called hstart which can run batch files without showing the console. I use it this way:
Code:
<launcher>
<name>PC</name>
<application>d:\jeff\games\pc\hstart.exe</application>
<args>/noconsole /wait</args>
<rompath>D:\Jeff\Games\pc\</rompath>
<thumbpath>D:\Jeff\Pictures\Box Art\PC\</thumbpath>
<fanartpath></fanartpath>
<romext>bat</romext>
...
Then I have a bat file for each PC game. It works really well because inside the bat files I can do useful things like loading disk images in DaemonTools or whatever it takes to get the game running.
Thanks for the awesome launcher plugin, it works really well now.
Jeff