diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-16 13:18:32 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-16 13:18:32 +0200 |
commit | 55bed82b0541c5dbefcf402cc0974fe5d05e7576 (patch) | |
tree | 4fbb6b2de0149fa74f6038408fb930b57def2d34 /platform/uwp/os_uwp.cpp | |
parent | bda63e1b5aa420617259f151a0570ca0780c0c7d (diff) | |
parent | ac9786c52534cc98c107edf568656f33a81fa2a0 (diff) | |
download | redot-engine-55bed82b0541c5dbefcf402cc0974fe5d05e7576.tar.gz |
Merge pull request #65525 from MJacred/os/distribution
Add get_distribution_name() and get_version() to OS
Diffstat (limited to 'platform/uwp/os_uwp.cpp')
-rw-r--r-- | platform/uwp/os_uwp.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 791328964b..8050d299f0 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -444,6 +444,16 @@ String OS_UWP::get_name() const { return "UWP"; } +String OS_UWP::get_distribution_name() const { + return get_name(); +} + +String OS_UWP::get_version() const { + winrt::hstring df_version = VersionInfo().DeviceFamilyVersion(); + static String version = String(winrt::to_string(df_version).c_str()); + return version; +} + OS::DateTime OS_UWP::get_datetime(bool p_utc) const { SYSTEMTIME systemtime; if (p_utc) { |