@@ -87,13 +87,13 @@ void EndSession()
87
87
{
88
88
RunCommand ( "/c ares-launch -d tv --close com.limelight.webos" ) ;
89
89
RunCommand ( "/c explorer.exe" ) ;
90
- RunCommand ( @ "/c " + Environment . CurrentDirectory + @"\Dependencies\ChangeScreenResolution.exe /w=" + configuration . OriginalResolutionX + " /h=" + configuration . OriginalResolutionY + " /f=" + configuration . OriginalResolutionHz + " /d=0" ) ;
90
+ RunCommand ( "/c \" " + Environment . CurrentDirectory + " \" " + @"\Dependencies\ChangeScreenResolution.exe /w=" + configuration . OriginalResolutionX + " /h=" + configuration . OriginalResolutionY + " /f=" + configuration . OriginalResolutionHz + " /d=0" ) ;
91
91
RunCommand ( "/c taskkill /F /IM " + configuration . PcApplicationUsedForStreaming ) ;
92
92
RunCommand ( "/c taskkill /IM " + configuration . PcApplicationBeingLaunched ) ;
93
93
moonlightTvStreamActive = false ;
94
94
//Wait for explorer to start up again before switching back to main desktop
95
95
Thread . Sleep ( 5000 ) ;
96
- RunCommand ( "/c " + Environment . CurrentDirectory + @"\Dependencies\nircmdc sendkeypress rwin+ctrl+left" ) ;
96
+ RunCommand ( "/c \" " + Environment . CurrentDirectory + " \" " + @"\Dependencies\nircmdc sendkeypress rwin+ctrl+left" ) ;
97
97
}
98
98
99
99
bool StartStream ( )
@@ -105,15 +105,15 @@ bool StartStream()
105
105
WakeOnLan . Wake ( configuration . TvMacAddress ) ;
106
106
}
107
107
108
- RunCommand ( "/c" + Environment . CurrentDirectory + @"\Dependencies\nircmdc sendkeypress rwin+ctrl+right" ) ;
108
+ RunCommand ( "/c \" " + Environment . CurrentDirectory + " \" " + @"\Dependencies\nircmdc sendkeypress rwin+ctrl+right" ) ;
109
109
//Wait for desktop to switch BEFORE killing explorer
110
110
Thread . Sleep ( 1000 ) ;
111
111
RunCommand ( "/c taskkill /F /IM explorer.exe" ) ;
112
- RunCommand ( @ "/c " + Environment . CurrentDirectory + @"\Dependencies\ChangeScreenResolution.exe /w=" + configuration . StreamResolutionX + " /h=" + configuration . StreamResolutionY + " /f=" + configuration . StreamResolutionHz + " /d=0" ) ;
112
+ RunCommand ( "/c \" " + Environment . CurrentDirectory + " \" " + @"\Dependencies\ChangeScreenResolution.exe /w=" + configuration . StreamResolutionX + " /h=" + configuration . StreamResolutionY + " /f=" + configuration . StreamResolutionHz + " /d=0" ) ;
113
113
RunCommand ( "/c ares-launch -d tv com.limelight.webos" ) ;
114
114
//Give TV some time to open the MoonlightTV app before attempting TV input
115
115
Thread . Sleep ( 3000 ) ;
116
- RunCommand ( "/c py " + Environment . CurrentDirectory + @"\Scripts\MoonlightTVAutoConnect.py" + " " + configuration . TvIpAddress + " " + configuration . TvClientKey + " " + configuration . TvMoonlightGameIndex ) ;
116
+ RunCommand ( "/c py \" " + Environment . CurrentDirectory + " \" " + @"\Scripts\MoonlightTVAutoConnect.py" + " " + configuration . TvIpAddress + " " + configuration . TvClientKey + " " + configuration . TvMoonlightGameIndex ) ;
117
117
}
118
118
119
119
Console . WriteLine ( "Streaming application started (" + configuration . PcApplicationUsedForStreaming + "). Output should be appearing on your TV now." ) ;
0 commit comments