2020-03-10 04:11:11 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack.Lib
|
2020-01-07 13:50:11 +00:00
|
|
|
|
{
|
|
|
|
|
public class SystemParameters
|
|
|
|
|
{
|
2020-03-10 04:11:11 +00:00
|
|
|
|
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; }
|
2020-03-10 04:11:11 +00:00
|
|
|
|
public long VideoMemorySize { get; set; }
|
|
|
|
|
public long SystemMemorySize { get; set; }
|
|
|
|
|
|
2020-03-19 02:10:55 +00:00
|
|
|
|
public Version WindowsVersion { get; set; }
|
|
|
|
|
|
2020-03-10 04:11:11 +00:00
|
|
|
|
/// <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
|
|
|
|
}
|
|
|
|
|
}
|