2013-09-02, 08:43
GGuys can you try this, I dont have time to make a new version (I think Ill add a few more changes). Replace the whole steam-launch.bat with the following and edit lines 3 + 4, from the equals sign onwards (eg: set STEAMLaunchCmd="D:\games\steam\steam.exe"
@Megatron @NorDemoniac Check out RetroAcrch for OE, pairing that with RomCollectionBrowser or Advanced Launcher should fix your gaming itch, including GTA on psx
http://openelec.tv/forum/128-addons/6497...32-64-bits
Code:
@echo off
set XBMCLaunchCmd=%PRGMFiles%"\XBMC\XBMC.exe"
set STEAMLaunchCmd=%PRGMFiles%"\Steam\steam.exe"
echo Check for 64bit or 32bit Windows
IF EXIST "%PROGRAMFILES(X86)%" (
echo Running 64-bit Windows
set PRGMFiles="C:\Program Files (x86)"
) || (
echo Running 32-bit Windows
set PRGMFiles="C:\Program Files"
)
echo Launch Steam BP differently depending wether its already open
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running, toggle big picture mode
cscript //B //Nologo "%appdata%/XBMC/addons/script.steam.launcher/resources/LaunchXBMC.vbs" %STEAMLaunchCmd% steam://open/bigpicture
) || (
echo Steam is not running, launch in big picture mode
cscript //B //Nologo "%appdata%/XBMC/addons/script.steam.launcher/resources/LaunchXBMC.vbs" %STEAMLaunchCmd% -bigpicture
)
:killxbmc
echo Kill XBMC
taskkill /f /IM xbmc.exe>nul 2>nul
:steamopenloop
echo Loop while steam open
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running, loop
timeout 1
goto steamopenloop
) || (
echo Steam is not running, launch XBMC
cscript //B //Nologo "%appdata%/XBMC/addons/script.steam.launcher/resources/LaunchXBMC.vbs" %XBMCLaunchCmd%
)
echo Check for 5 seconds to see if Steam has been restarted after an update - this figure can probably be lowered
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running again after 1 second
goto killxbmc
) || (
echo Steam is not running, wait one second, try again.. 1
timeout 1
)
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running again after 2 seconds
goto killxbmc
) || (
echo Steam is not running, wait one second, try again.. 2
timeout 1
)
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running again after 3 seconds
goto killxbmc
) || (
echo Steam is not running, wait one second, try again.. 3
timeout 1
)
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running again after 4 seconds
goto killxbmc
) || (
echo Steam is not running, wait one second, try again.. 4
timeout 1
)
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running again after 5 seconds, that was close...
goto killxbmc
) || (
echo Steam is not running, wait one second, try again.. 5
timeout 1
)
tasklist /nh /fi "imagename eq steam.exe" | find /i "steam.exe" >nul && (
echo Steam is running
goto killxbmc
) || (
echo Steam is not running after 5 seconds, user must have quit
echo Script is exiting
)
@Megatron @NorDemoniac Check out RetroAcrch for OE, pairing that with RomCollectionBrowser or Advanced Launcher should fix your gaming itch, including GTA on psx
http://openelec.tv/forum/128-addons/6497...32-64-bits