Skip to content

Commit 534909f

Browse files
committed
Add token view option
1 parent 6e33a65 commit 534909f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Oculus Downgrader/Program.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void Main(string[] args)
4848
// Handle oculus uri scheme
4949
Logger.SetLogFile(AppDomain.CurrentDomain.BaseDirectory + "Log.log");
5050
SetupExceptionHandlers();
51-
DowngradeManager.updater = new Updater("1.11.39", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus Downgrader", Assembly.GetExecutingAssembly().Location);
51+
DowngradeManager.updater = new Updater("1.11.40", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus Downgrader", Assembly.GetExecutingAssembly().Location);
5252
Logger.LogRaw("\n\n");
5353
Logger.Log("Starting Oculus Downgrader version " + DowngradeManager.updater.version);
5454
if (args.Length == 1 && args[0] == "--update")
@@ -415,13 +415,23 @@ public void Settings()
415415
string choice = ConsoleUiController.ShowMenu(new []
416416
{
417417
"Show developer only versions you got access to (currently " + config.requestVersionsFromOculus + ")",
418+
"Show Oculus token(Do not share)"
419+
418420
});
419421
switch(choice)
420422
{
421423
case "1":
422424
config.requestVersionsFromOculus = !config.requestVersionsFromOculus;
423425
config.Save();
424426
break;
427+
case "2":
428+
if (!CheckPassword())
429+
{
430+
Error("You need to enter your password to see your token");
431+
break;
432+
}
433+
Console.WriteLine("Your token is: " + DecryptToken());
434+
break;
425435
}
426436
}
427437

0 commit comments

Comments
 (0)