From 46da96ab94b25346d2b8a841e86339139939cf6e Mon Sep 17 00:00:00 2001 From: Hypn0tick Date: Fri, 9 Feb 2024 12:43:00 -0300 Subject: [PATCH] Added the ability to quickly start the program with launch parameters. --- Program.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Program.cs b/Program.cs index d67a0c7..a9bdde7 100644 --- a/Program.cs +++ b/Program.cs @@ -344,6 +344,42 @@ static void Main(string[] args) }).Start(); start: + string argsString = string.Concat(args); + Console.Clear(); + foreach (string arg in args) + { + if (arg == "-c" | arg == "-custom") + { + CustomRamLimiter(-1, -1); + } + if (arg == "-discord") + { + if (args.Contains("-chrome")) + { + Both(-1, -1); + } + else + { + DiscordRamLimiter(-1, -1); + } + } + if (arg == "-chrome") + { + if (args.Contains("-discord")) + { + Both(-1, -1); + } + else + { + ChromeRamLimiter(-1, -1); + } + } + if (arg == "-obs") + { + OBSRamLimiter(-1, -1); + } + } + Console.Clear(); Console.WriteLine("Just Limit Discord: 1"); Console.WriteLine("Just Limit Chrome: 2"); Console.WriteLine("Just Limit OBS: 3");