2021-09-27 12:42:46 +00:00
|
|
|
using System;
|
2020-03-10 04:11:11 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.Installer;
|
|
|
|
|
|
|
|
public class SystemParameters
|
2020-01-07 13:50:11 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
public int ScreenWidth { get; set; }
|
|
|
|
public int ScreenHeight { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public long VideoMemorySize { get; set; }
|
|
|
|
public long SystemMemorySize { get; set; }
|
2020-04-09 17:17:24 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public long SystemPageSize { get; set; }
|
2021-01-11 06:59:32 +00:00
|
|
|
|
2020-04-09 17:17:24 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public long EnbLEVRAMSize => Math.Min(ToMB(SystemMemorySize) + ToMB(VideoMemorySize), 10240);
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +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
|
|
|
}
|