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: lina.halper
#ROBOMERGE-AUTHOR: nick.shin
#ROBOMERGE-SOURCE: CL 5710978 in //UE4/Release-4.22/... via CL 5711369
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5720279 by nick shin in Dev-Anim branch]
This commit is contained in:
nick shin
2019-04-03 21:26:48 -04:00
parent 3a3017fb60
commit 7db988069a
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))
{