This commit is contained in:
JustArchi
2020-11-28 23:16:03 +01:00
parent 8fb91fe58b
commit 97ee4eaef2

View File

@@ -35,7 +35,7 @@ using ArchiSteamFarm.Localization;
namespace ArchiSteamFarm {
internal static class OS {
// We need to keep this one assigned and not calculated on-demand
internal static readonly string ProcessFileName = Process.GetCurrentProcess().MainModule?.FileName ?? throw new ArgumentNullException(nameof(ProcessFileName));
internal static readonly string ProcessFileName = Process.GetCurrentProcess().MainModule?.FileName ?? throw new InvalidOperationException(nameof(ProcessFileName));
internal static string Variant => RuntimeInformation.OSDescription.Trim();