2011-02-05, 08:36
Angelscry Wrote:Ok... I have played this evening with the last version of PCSX2 (0.9.7), XBMC and advanced launcher to try to make them work together. This is what I have obtained and concluded using all of them on my Windows 7 system:So, my conclusion is that we cannot use XBMC/Advanced launcher to start directly PCSX2. We need to use and intermediate script to try to solve all of these problems.
- We need to use the last version 0.9.7 of PCSX2 if we want a good support of the command line. No lower version !!!
- PCSX2 is not able to hide the mouse cursor when started into fullscreen.
- The working directory need to be the directory where is located the PCSX2 executable file if we want it to found configuration files, ini files, bios files, etc...
- When exiting PCSX2 using the ESC key the PCSX2 process still active!!!! That's could explain why after exiting PCSX2, XBMC still minimized and sometime freezes.
I have wrote this following small script using Autoit :
Then I have compiled it into an executable file using Autoit, named the executable file as pcsx2-launcher.exe and saved it into the directory of PCSX2.Code:#include <Misc.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files (x86)\PCSX2 0.9.7\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2-r3878.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc
Here is the part of my launchers.xml XML file corresponding to the PCSX2/Playstation 2 :And it's working...Code:<launcher>
<name>Playstation 2 (pcsx2)</name>
<application>C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-launcher.exe</application>
<args>"%rom%"</args>
<rompath>E:\playstation2\roms\</rompath>
<thumbpath>E:\playstation2\covers\</thumbpath>
<fanartpath>E:\playstation2\fanarts\</fanartpath>
<extrafanartpath>E:\playstation2\fanarts\</extrafanartpath>
<romext>iso</romext>
<platform>Playstation 2</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<wait>true</wait>
<minimize>true</minimize>
<lnk>true</lnk>
<roms>
<rom>
<name>Suikoden III</name>
<filename>E:\playstation2\roms\suikoden III.iso</filename>
<platform>Playstation 2</platform>
<thumb>E:\playstation2\covers\suikoden III.JPG</thumb>
<fanart>E:\playstation2\fanarts\suikoden III.jpg</fanart>
<extrafanart>E:\playstation2\fanarts\</extrafanart>
<genre>Role-Playing</genre>
<release>2002</release>
<publisher>Konami Computer Entertainment Tokyo (KCET)</publisher>
<gameplot>The Suikoden series debuted in the early days of the original PlayStation. Six years after the first game and three years since the second‚ Konami brings the series back with Suikoden III for th$
</rom>
</roms>
</launcher>
For those of you using eventghost, it's really a touch easier to run a quick macro on window close to simply refocus on PCSX2 and close the main gui window as well. As such, you'll want to turn nogui back off so that you can actually target the gui.
supposedly the escape closing the program is being implemented soon...