Add x64process stat.

This commit is contained in:
Paul Chote
2017-08-17 17:08:24 +01:00
committed by reaperrr
parent 9fc0970cfc
commit daee217431

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
static bool fetchedNews; static bool fetchedNews;
// Increment the version number when adding new stats // Increment the version number when adding new stats
const int SystemInformationVersion = 2; const int SystemInformationVersion = 3;
Dictionary<string, Pair<string, string>> GetSystemInformation() Dictionary<string, Pair<string, string>> GetSystemInformation()
{ {
var lang = System.Globalization.CultureInfo.InstalledUICulture.TwoLetterISOLanguageName; var lang = System.Globalization.CultureInfo.InstalledUICulture.TwoLetterISOLanguageName;
@@ -48,6 +48,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{ "platform", Pair.New("OS Type", Platform.CurrentPlatform.ToString()) }, { "platform", Pair.New("OS Type", Platform.CurrentPlatform.ToString()) },
{ "os", Pair.New("OS Version", Environment.OSVersion.ToString()) }, { "os", Pair.New("OS Version", Environment.OSVersion.ToString()) },
{ "x64", Pair.New("OS is 64 bit", Environment.Is64BitOperatingSystem.ToString()) }, { "x64", Pair.New("OS is 64 bit", Environment.Is64BitOperatingSystem.ToString()) },
{ "x64process", Pair.New("Process is 64 bit", Environment.Is64BitProcess.ToString()) },
{ "runtime", Pair.New(".NET Runtime", Platform.RuntimeVersion) }, { "runtime", Pair.New(".NET Runtime", Platform.RuntimeVersion) },
{ "gl", Pair.New("OpenGL Version", Game.Renderer.GLVersion) }, { "gl", Pair.New("OpenGL Version", Game.Renderer.GLVersion) },
{ "windowsize", Pair.New("Window Size", "{0}x{1}".F(Game.Renderer.Resolution.Width, Game.Renderer.Resolution.Height)) }, { "windowsize", Pair.New("Window Size", "{0}x{1}".F(Game.Renderer.Resolution.Width, Game.Renderer.Resolution.Height)) },