Skip to content

Commit

Permalink
Add option to export token to OculusDB
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite committed Jan 2, 2024
1 parent 57f9988 commit 1761869
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Oculus Downgrader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void Main(string[] args)
// Handle oculus uri scheme
Logger.SetLogFile(AppDomain.CurrentDomain.BaseDirectory + "Log.log");
SetupExceptionHandlers();
DowngradeManager.updater = new Updater("1.11.42", "https://github.com/ComputerElite/Oculus-downgrader", "Oculus Downgrader", Assembly.GetExecutingAssembly().Location);
DowngradeManager.updater = new Updater("1.11.43", "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 @@ -416,7 +416,8 @@ 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)"
"Show Oculus token (Do not share)",
"Export token to OculusDB"

});
switch(choice)
Expand All @@ -433,6 +434,21 @@ public void Settings()
}
Console.WriteLine("Your token is: " + DecryptToken());
break;
case "3":
if (!CheckPassword())
{
Error("You need to enter your password to see your token");
break;
}

string url = "https://oculusdb.rui2015.me/utils?token=" + DecryptToken();
ProcessStartInfo info = new ProcessStartInfo
{
UseShellExecute = true,
FileName = url
};
Process.Start(info);
break;
}
}

Expand Down

0 comments on commit 1761869

Please sign in to comment.