add helper for checking bionic

This commit is contained in:
Emmanuel Hansen 2023-06-25 17:32:14 +00:00
parent 1835e16045
commit ad0f9a7fc7
12 changed files with 44 additions and 31 deletions

View file

@ -9,6 +9,7 @@ namespace Ryujinx.Ui.Common.SystemInfo
{
public class SystemInfo
{
public static bool IsBionic { get; set; }
public string OsDescription { get; protected set; }
public string CpuName { get; protected set; }
public ulong RamTotal { get; protected set; }
@ -75,5 +76,10 @@ namespace Ryujinx.Ui.Common.SystemInfo
return string.IsNullOrEmpty(name) ? null : name;
}
public static bool IsAndroid()
{
return OperatingSystem.IsAndroid() || IsBionic;
}
}
}