wabbajack/Wabbajack.Installer/SystemParameters.cs

24 lines
588 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System;
2021-09-27 12:42:46 +00:00
namespace Wabbajack.Installer
2020-01-07 13:50:11 +00:00
{
public class SystemParameters
{
public int ScreenWidth { get; set; }
2021-09-27 12:42:46 +00:00
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);
2021-09-27 12:42:46 +00:00
private static long ToMB(long input)
{
// KB MB
return input / 1024 / 1024;
}
2020-01-07 13:50:11 +00:00
}
2021-09-27 12:42:46 +00:00
}