Skip to content

Commit

Permalink
Add /language handle to login
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite authored and ComputerElite committed Nov 12, 2023
1 parent 9809218 commit 510f62a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions QuestAppVersionSwitcher/CoreService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
using ComputerUtils.Android.Logging;
using QuestAppVersionSwitcher.Mods;
using System;
using System.IO;
using System.Net.Security;
using System.Net;
using System.Reflection;
using Android.OS;
using Android.Systems;
using Android.Views;
using AndroidX.Activity.Result;
using ComputerUtils.Android;
using Java.IO;
using Newtonsoft.Json;
using File = System.IO.File;
using JsonSerializer = System.Text.Json.JsonSerializer;
using Object = Java.Lang.Object;

Expand Down Expand Up @@ -56,14 +58,14 @@ public static void Start()

// Accept every ssl certificate, may be a security risk but it's the only way to get the mod list (CoPilot)
Logger.displayLogInConsole = true;

// Create all directories and files
if (!started)
{
FileManager.CreateDirectoryIfNotExisting(coreVars.QAVSDir);
File.WriteAllText(coreVars.QAVSDir + ".nomedia", "");
Logger.SetLogFile(coreVars.QAVSDir + "qavslog.log");
Logger.Log("\n\n\nQAVS Version: " + version + " starting up...\n\n\n");
Logger.Log(Android.OS.Build.VERSION.Incremental);
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
FileManager.CreateDirectoryIfNotExisting(coreVars.QAVSBackupDir);
FileManager.RecreateDirectoryIfExisting(coreVars.QAVSTmpDowngradeDir);
Expand Down
1 change: 1 addition & 0 deletions QuestAppVersionSwitcher/FolderPermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Android.OS;
using Android.OS.Storage;
using Android.Provider;
using Android.Systems;
using Android.Views.TextClassifiers;
using AndroidX.Activity.Result;
using AndroidX.Activity.Result.Contract;
Expand Down
5 changes: 5 additions & 0 deletions QuestAppVersionSwitcher/QAVSWebViewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public override void OnPageFinished(WebView view, string url)
// redirect to oculus page
view.LoadUrl("https://developer.oculus.com/manage");
}
if (url.ToLower().StartsWith("https://auth.meta.com/language"))
{
// redirect to oculus page
view.LoadUrl("https://auth.meta.com/settings");
}
}

public static Dictionary<string, string> headers = new Dictionary<string, string>
Expand Down
1 change: 0 additions & 1 deletion QuestAppVersionSwitcher/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,6 @@ public void Start()
{
FolderPermission.openDirectory(Environment.ExternalStorageDirectory.AbsolutePath + "/Android/data");
FolderPermission.openDirectory(Environment.ExternalStorageDirectory.AbsolutePath + "/Android/obb");

}
else
{
Expand Down

0 comments on commit 510f62a

Please sign in to comment.