You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add get_distribution_name() and get_version() to OS
supports: LinuxBSD, Windows, macOS, iOS, Android, UWP Co-authored-by: bruvzg
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user