2010-10-30, 22:07
jeff93063 Wrote:Would it be possible to put standalone launchers into a submenu, so that I can have PC games in a section just like I do for Super Nintendo, Sega Genesis, etc?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 :
Or maybe just have a hierarchy based on the <platform> tag. Then when you enter the launcher program, it will list all the platforms which exist in your launchers.xml, and you can browse your collection by platform.
Maybe this is already possible, I just don't know how to do it.
Thanks again,
Jeff
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
Code:
"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.