Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework)

#rb none

[CL 5812824 by Dan Oconnor in Dev-Framework branch]
This commit is contained in:
Dan Oconnor
2019-04-09 16:29:40 -04:00
parent 846e7c0b7d
commit 75fa0c83b8
486 changed files with 28789 additions and 15871 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))
{