Allow cmdline arg for forbidding Steam parental generation

This commit is contained in:
Archi
2022-04-06 14:16:26 +02:00
parent 1eabe3a5ed
commit 0bbc85527a
2 changed files with 12 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ internal static class Program {
internal static bool RestartAllowed { get; private set; } = true;
internal static bool Service { get; private set; }
internal static bool ShutdownSequenceInitialized { get; private set; }
internal static bool SteamParentalGeneration { get; private set; } = true;
#if !NETFRAMEWORK
private static readonly Dictionary<PosixSignal, PosixSignalRegistration> RegisteredPosixSignals = new();
@@ -529,6 +530,10 @@ internal static class Program {
case "--NO-RESTART" when !cryptKeyNext && !networkGroupNext && !pathNext:
RestartAllowed = false;
break;
case "--NO-STEAM-PARENTAL-GENERATION" when !cryptKeyNext && !networkGroupNext && !pathNext:
SteamParentalGeneration = false;
break;
case "--PROCESS-REQUIRED" when !cryptKeyNext && !networkGroupNext && !pathNext:
ProcessRequired = true;