HTML5 - 4.22.1 - update browser paths for launch on menu

#jira UE-71886  FireFox Quantum 67.0b3 fails to launch on correctly
#rnx
#rb none
#lockdown jack.porter

#ROBOMERGE-OWNER: ryan.vance
#ROBOMERGE-AUTHOR: nick.shin
#ROBOMERGE-SOURCE: CL 5710978 in //UE4/Release-4.22/... via CL 5711369
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 5720420 by nick shin in Dev-VR branch]
This commit is contained in:
nick shin
2019-04-03 21:32:40 -04:00
parent ded2d9a4eb
commit 43eff3c750
3 changed files with 25 additions and 15 deletions

View File

@@ -350,7 +350,13 @@ void FHTML5TargetPlatform::PopulateDevices(TArray<FString>& DeviceMaps, FString
if( FParse::Value( *It, TEXT( "BrowserName=" ), DeviceName ) && !DeviceName.IsEmpty() &&
FParse::Value( *It, TEXT( "BrowserPath=(FilePath=" ), DevicePath ) && !DevicePath.IsEmpty() )
{
#if PLATFORM_WINDOWS
if ( DeviceName.StartsWith( TEXT( "Canary" ) ) )
{
FString UserName = FPlatformMisc::GetEnvironmentVariable(TEXT("USRENAME"));
DevicePath.Replace( TEXT("your_username"), *UserName );
}
#endif
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*DevicePath) ||
FPlatformFileManager::Get().GetPlatformFile().DirectoryExists(*DevicePath))
{