2013-06-27, 20:52
Edit:i got it to work. It closes the emulator fully now. However. Xbmc also closes. how can i avoid that it also closes xbmc? it just should go back to the game section in xbmc. Not close it and restart it.
Maybe they did this on purpose, so the games run smoother because nothing runs in the background?
Maybe they did this on purpose, so the games run smoother because nothing runs in the background?
Quote:HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Users\Tim\Desktop\PS2\Emulator\PCSX2 1.0.0\pcsx2-r5350.exe" --nogui --fullscreen "' & $CmdLine[1] & '"', "C:\Users\Tim\Desktop\PS2\Emulator\PCSX2 1.0.0\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2-r5350.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc