wabbajack/Wabbajack.Lib/SystemParameters.cs

26 lines
729 B
C#
Raw Normal View History

using System;
namespace Wabbajack.Lib
2020-01-07 13:50:11 +00:00
{
public class SystemParameters
{
private static long ToMB(long input)
{
// KB MB
return input / 1024 / 1024;
}
2020-01-07 13:50:11 +00:00
public int ScreenHeight { get; set; }
public int ScreenWidth { get; set; }
public long VideoMemorySize { get; set; }
public long SystemMemorySize { get; set; }
public Version WindowsVersion { get; set; } = Environment.OSVersion.Version;
/// <summary>
/// Value used in LE ENBs for VideoMemorySizeMb
/// </summary>
public long EnbLEVRAMSize => Math.Min(ToMB(SystemMemorySize) + ToMB(VideoMemorySize), 10240);
2020-01-07 13:50:11 +00:00
}
}