Fixes for benchmark
This commit is contained in:
@@ -36,3 +36,12 @@ FString UPlatformInfotFunctionLibrary::GetRamAmount()
|
||||
{
|
||||
return FString::FromInt(FGenericPlatformMemory::GetPhysicalGBRam());
|
||||
}
|
||||
|
||||
bool UPlatformInfotFunctionLibrary::bIsMobilePlatform()
|
||||
{
|
||||
#if PLATFORM_ANDROID or PLATFORM_IOS
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
@@ -25,4 +25,7 @@ public:
|
||||
|
||||
UFUNCTION(BlueprintPure, Category = "HardwareInfo")
|
||||
static FString GetRamAmount();
|
||||
|
||||
UFUNCTION(BlueprintPure, Category = "HardwareInfo")
|
||||
static bool bIsMobilePlatform();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user