Skip to content

Commit 22d4622

Browse files
ComputerEliteComputerElite
authored andcommitted
add skipprompts argument
1 parent 0b3c308 commit 22d4622

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Program.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void Main(string[] args)
4343
{
4444
Logger.SetLogFile(AppDomain.CurrentDomain.BaseDirectory + "Log.log");
4545
SetupExceptionHandlers();
46-
DowngradeManager.updater = new Updater("1.11.7", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus downgrader", Assembly.GetExecutingAssembly().Location);
46+
DowngradeManager.updater = new Updater("1.11.8", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus downgrader", Assembly.GetExecutingAssembly().Location);
4747
Logger.LogRaw("\n\n");
4848
Logger.Log("Starting Oculus downgrader version " + DowngradeManager.updater.version);
4949
if (args.Length == 1 && args[0] == "--update")
@@ -66,8 +66,10 @@ static void Main(string[] args)
6666
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--mod", "-m" }, true, "Attempts to mod quest games if you launch them and then installs the modded version"); // Done
6767
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--continue" }, true, "Allow user input if some arguments are missing. If not pressemt Oculus downgrader will show an Error if you miss an argument");
6868
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--userexecuted", "--noquit" }, true, "Makes the application not quit after unsucessful attempts");
69+
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--skipprompts" }, true, "Skips all user prompts");
6970

70-
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "launch", "l" }, true, "Launches an app/game if downloaded"); // Done
71+
72+
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "launch", "l" }, true, "Launches an app/game if downloaded"); // Done
7173
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "backup", "b" }, true, "Creates a backup of an app"); // Done
7274
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--appid" }, false, "Appid of game to download/launch", "appid"); // Done
7375
DowngradeManager.commands.AddCommandLineArgument(new List<string> { "--appname" }, false, "Name of game to launch", "name"); // Done
@@ -319,7 +321,7 @@ public void Menu()
319321
Console.WriteLine("[10] Create Backup");
320322
Console.WriteLine("[11] Direct execute");
321323
Console.WriteLine("[12] Open graphical ui");
322-
Console.WriteLine("[13] Exit");
324+
Console.WriteLine("[14] Exit");
323325
string choice = ConsoleUiController.QuestionString("Choice: ");
324326
Logger.Log("User choose option " + choice);
325327
switch (choice)
@@ -368,7 +370,7 @@ public void Menu()
368370
if (!CheckPassword()) break;
369371
OculusDB();
370372
break;
371-
case "13":
373+
case "13":
372374
Logger.Log("Exiting");
373375
Environment.Exit(0);
374376
break;
@@ -412,7 +414,7 @@ public void StartWithArgs()
412414
}
413415
}
414416

415-
public string UpdateMSEdge()
417+
public string UpdateMSEdge()
416418
{
417419
string msev = Registry.GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Edge\\BLBeacon", "version", "108.0.1462.54").ToString();
418420
Logger.Log("Updating MSEdge");
@@ -1419,6 +1421,7 @@ public void StartDownload(AndroidBinary binary, string appId, string appName, bo
14191421
Logger.Log("Downgrading finished");
14201422
string choice;
14211423
bool askLaunch = auto && !commands.HasArgument("--userexecuted");
1424+
if (auto && commands.HasArgument("--skipprompts")) askLaunch = true;
14221425
if (config.headset == Headset.RIFT)
14231426
{
14241427
Console.WriteLine("Finished. You can now launch the game from the launch app option in the main menu. It is mandatory to launch it from there so the downgraded game gets copied to the Oculus folder and doesn't fail the entitlement checks.");

0 commit comments

Comments
 (0)