You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE4/Dev-Main to Dev-Networking (//UE4/Dev-Networking)
#rb none #rnx [CL 4119306 by Ryan Gerleve in Dev-Networking branch]
This commit is contained in:
@@ -714,7 +714,17 @@ void FAndroidTargetPlatform::AddTextureFormatIfSupports( FName Format, TArray<FN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void FAndroidTargetPlatform::InitializeDeviceDetection()
|
||||
{
|
||||
DeviceDetection = FModuleManager::LoadModuleChecked<IAndroidDeviceDetectionModule>("AndroidDeviceDetection").GetAndroidDeviceDetection();
|
||||
DeviceDetection->Initialize(TEXT("ANDROID_HOME"),
|
||||
#if PLATFORM_WINDOWS
|
||||
TEXT("platform-tools\\adb.exe"),
|
||||
#else
|
||||
TEXT("platform-tools/adb"),
|
||||
#endif
|
||||
TEXT("shell getprop"), true);
|
||||
}
|
||||
/* FAndroidTargetPlatform callbacks
|
||||
*****************************************************************************/
|
||||
|
||||
@@ -724,7 +734,8 @@ bool FAndroidTargetPlatform::HandleTicker( float DeltaTime )
|
||||
|
||||
if (DeviceDetection == nullptr)
|
||||
{
|
||||
DeviceDetection = FModuleManager::LoadModuleChecked<IAndroidDeviceDetectionModule>("AndroidDeviceDetection").GetAndroidDeviceDetection();
|
||||
InitializeDeviceDetection();
|
||||
checkf(DeviceDetection != nullptr, TEXT("A target platform didn't create a device detection object in InitializeDeviceDetection()!"));
|
||||
}
|
||||
|
||||
TArray<FString> ConnectedDeviceIds;
|
||||
|
||||
Reference in New Issue
Block a user