Add SystemName and SystemVersion to Platform api

This commit is contained in:
Wojtek Figat
2025-03-07 11:06:10 +01:00
parent cc7d88d4a9
commit 7135eb3591
15 changed files with 105 additions and 17 deletions

View File

@@ -11,8 +11,8 @@
#include "Engine/Platform/MemoryStats.h"
#include "Engine/Platform/BatteryInfo.h"
#include "Engine/Platform/Base/PlatformUtils.h"
#include "Engine/Engine/Globals.h"
#include "Engine/Core/Log.h"
#include "Engine/Core/Types/Version.h"
#include "Engine/Core/Collections/Dictionary.h"
#include "Engine/Core/Collections/Array.h"
#include "Engine/Platform/MessageBox.h"
@@ -793,6 +793,16 @@ void WindowsPlatform::SetHighDpiAwarenessEnabled(bool enable)
::FreeLibrary(shCoreDll);
}
String WindowsPlatform::GetSystemName()
{
return WindowsName;
}
Version WindowsPlatform::GetSystemVersion()
{
return Version(VersionMajor, VersionMinor, VersionBuild);
}
BatteryInfo WindowsPlatform::GetBatteryInfo()
{
BatteryInfo info;