You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TurnkeySupportModule.h"
|
|
#include "Async/Async.h"
|
|
#include "Misc/MonitoredProcess.h"
|
|
|
|
FString ConvertToDDPIPlatform(const FString& Platform)
|
|
{
|
|
FString New = Platform.Replace(TEXT("Editor"), TEXT("")).Replace(TEXT("Client"), TEXT("")).Replace(TEXT("Server"), TEXT(""));
|
|
if (New == TEXT("Win64"))
|
|
{
|
|
New = TEXT("Windows");
|
|
}
|
|
return New;
|
|
}
|
|
|
|
FName ConvertToDDPIPlatform(const FName& Platform)
|
|
{
|
|
return FName(*ConvertToDDPIPlatform(Platform.ToString()));
|
|
}
|
|
|
|
FString ConvertToUATPlatform(const FString& Platform)
|
|
{
|
|
FString New = ConvertToDDPIPlatform(Platform);
|
|
if (New == TEXT("Windows"))
|
|
{
|
|
New = TEXT("Win64");
|
|
}
|
|
return New;
|
|
}
|
|
|
|
FString ConvertToUATDeviceId(const FString& DeviceId)
|
|
{
|
|
TArray<FString> PlatformAndDevice;
|
|
DeviceId.ParseIntoArray(PlatformAndDevice, TEXT("@"), true);
|
|
|
|
return FString::Printf(TEXT("%s@%s"), *ConvertToUATPlatform(PlatformAndDevice[0]), *PlatformAndDevice[1]);
|
|
}
|
|
|
|
FString ConvertToDDPIDeviceId(const FString& DeviceId)
|
|
{
|
|
TArray<FString> PlatformAndDevice;
|
|
DeviceId.ParseIntoArray(PlatformAndDevice, TEXT("@"), true);
|
|
|
|
return FString::Printf(TEXT("%s@%s"), *ConvertToDDPIPlatform(PlatformAndDevice[0]), *PlatformAndDevice[1]);
|
|
}
|
|
|