wabbajack/Wabbajack.Installer/SystemParameters.cs
2021-09-27 06:42:46 -06:00

24 lines
588 B
C#

using System;
namespace Wabbajack.Installer
{
public class SystemParameters
{
public int ScreenWidth { get; set; }
public int ScreenHeight { get; set; }
public long VideoMemorySize { get; set; }
public long SystemMemorySize { get; set; }
public long SystemPageSize { get; set; }
public long EnbLEVRAMSize => Math.Min(ToMB(SystemMemorySize) + ToMB(VideoMemorySize), 10240);
private static long ToMB(long input)
{
// KB MB
return input / 1024 / 1024;
}
}
}