Report CPU arch in logs and sysinfo.

This commit is contained in:
Paul Chote
2022-12-17 17:34:48 +13:00
committed by Gustas
parent a17e1671f0
commit 80945cd08a
4 changed files with 6 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
namespace OpenRA
{
@@ -23,6 +24,7 @@ namespace OpenRA
public static class Platform
{
public static PlatformType CurrentPlatform => LazyCurrentPlatform.Value;
public static Architecture CurrentArchitecture => RuntimeInformation.ProcessArchitecture;
public static readonly Guid SessionGUID = Guid.NewGuid();
static readonly Lazy<PlatformType> LazyCurrentPlatform = Exts.Lazy(GetCurrentPlatform);