Skip to content

Commit

Permalink
Add token view option
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite committed Dec 28, 2023
1 parent 6e33a65 commit 534909f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Oculus Downgrader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void Main(string[] args)
// Handle oculus uri scheme
Logger.SetLogFile(AppDomain.CurrentDomain.BaseDirectory + "Log.log");
SetupExceptionHandlers();
DowngradeManager.updater = new Updater("1.11.39", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus Downgrader", Assembly.GetExecutingAssembly().Location);
DowngradeManager.updater = new Updater("1.11.40", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus Downgrader", Assembly.GetExecutingAssembly().Location);
Logger.LogRaw("\n\n");
Logger.Log("Starting Oculus Downgrader version " + DowngradeManager.updater.version);
if (args.Length == 1 && args[0] == "--update")
Expand Down Expand Up @@ -415,13 +415,23 @@ public void Settings()
string choice = ConsoleUiController.ShowMenu(new []
{
"Show developer only versions you got access to (currently " + config.requestVersionsFromOculus + ")",
"Show Oculus token(Do not share)"

});
switch(choice)
{
case "1":
config.requestVersionsFromOculus = !config.requestVersionsFromOculus;
config.Save();
break;
case "2":
if (!CheckPassword())
{
Error("You need to enter your password to see your token");
break;
}
Console.WriteLine("Your token is: " + DecryptToken());
break;
}
}

Expand Down

0 comments on commit 534909f

Please sign in to comment.