Skip to content

Commit ad4ffca

Browse files
ComputerEliteComputerElite
authored andcommitted
automatically select correct version on get mods tab
1 parent c6a4055 commit ad4ffca

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

Assets/html/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h2>Installed Libraries</h2>
108108
<h2>To download mods simply download any mod from one of the following sites</h2>
109109
<div style="display: flex; flex-direction: column;" class="buttonsContainer">
110110
<div class="button labelMargin" onclick="OpenSite(`https://computerelite.github.io/tools/Oculus/QAVSHome.html`)">Open website hub</div>
111-
<div class="button labelMargin" onclick="OpenSite(`https://computerelite.github.io/tools/Beat_Saber/questmods.html`)">Open Beat Saber Mods page</div>
111+
<div class="button labelMargin" onclick="OpenSite(`https://computerelite.github.io/tools/Beat_Saber/questmods.html?version=${currentGameVersion}`)">Open Beat Saber Mods page</div>
112112
<div class="button labelMargin" onclick="OpenSite(`https://www.google.com/search?q=computerelite`)">Open Google</div>
113113
</div>
114114

@@ -276,12 +276,12 @@ <h2>To download mods simply download any mod from one of the following sites</h2
276276
<div class="contentHeader headerMargin">
277277
Password needed
278278
</div>
279-
Please enter a password to encrypt your login information (token). You can change this password any time by simply pressing the login button again in the tools & options tab.
279+
Create a password to encrypt your login information (token). If you forget this password, you can change it any time by simply logging in again in the tools & options tab.
280280
<input type="password" id="passwordToken" placeholder="password">
281281
<div id="step8box" class="textBox"></div>
282282
<div class="buttonSelectionContainer">
283283
<div class="buttonContainer buttonMargin">
284-
<div class="button" id="tokenPassword">Confirm password</div>
284+
<div class="button" id="tokenPassword">Create password for QuestAppVersionSwitcher</div>
285285
</div>
286286
</div>
287287
</div>
@@ -292,7 +292,7 @@ <h2>To download mods simply download any mod from one of the following sites</h2
292292
To login we'll open auth.meta.com for you. Accept the cookies when Meta or Oculus ask you to. We'll then redirect you to the login. Consenting to cookies is needed so you can log in.
293293
<br />
294294
<br />
295-
<b>If not done automatically after loggin in press the <code>Oculus (Login)</code> button at the top and on the oculus site find the login button to complete the login</b>
295+
<b>If not done automatically after loggin in press the <code>Oculus (Login)</code> button at the top and on the oculus site and find the login button to complete the login</b>
296296
<div id="step9box" class="textBox"></div>
297297
<div class="buttonSelectionContainer">
298298
<div class="buttonContainer">

Assets/html/script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const squareLoader = `
1111
<div class="loaderSquare"></div>
1212
</div>`
1313

14+
var currentGameVersion = ""
15+
1416
const browser = document.getElementById("browser")
1517
const toastsE = document.getElementById("toasts")
1618
document.getElementById("downgradeframe").src = `https://oculusdb.rui2015.me/search?query=Beat+Saber&headsets=MONTEREY%2CHOLLYWOOD${IsOnQuest() ? `&isqavs=true` : ``}`
@@ -64,14 +66,19 @@ document.getElementById("logintoken").onclick = () => {
6466
location = `?token=${document.getElementById("tokeninput").value}`
6567
}
6668

69+
function UpdateVersion(version) {
70+
currentGameVersion = version
71+
}
72+
6773
function UpdatePatchingStatus() {
6874
if(patchInProgress) {
6975
return;
7076
}
7177
patchStatus.innerHTML = `Loading<br><br>${squareLoader}`
7278
fetch("/patching/getmodstatus").then(res => {
7379
res.json().then(res => {
74-
if(res.isPatched) {
80+
UpdateVersion(res.version)
81+
if (res.isPatched) {
7582
document.getElementById("modsButton").style.visibility = "visible"
7683
patchStatus.innerHTML = "<h2>Game is already patched. You can install mods</h2>"
7784
} else if(!res.isInstalled) {

Properties/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.8.6" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="36">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.8.7" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="37">
33
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="29" />
44
<uses-permission android:name="oculus.permission.handtracking" />
55
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
// Minor Version
2323
// Build Number
2424
// Revision
25-
[assembly: AssemblyVersion("1.8.6.0")]
26-
[assembly: AssemblyFileVersion("1.8.6.0")]
25+
[assembly: AssemblyVersion("1.8.7.0")]
26+
[assembly: AssemblyFileVersion("1.8.7.0")]

QuestAppVersionSwitcher.csproj.user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<SelectedDevice>Oculus Quest</SelectedDevice>
5-
<ActiveDebugProfile>Oculus Quest %28Android 10.0 - API 29%29</ActiveDebugProfile>
4+
<SelectedDevice>Google Pixel 6</SelectedDevice>
5+
<ActiveDebugProfile>Google Pixel 6 %28Android 13.0 - API 33%29</ActiveDebugProfile>
66
<DefaultDevice>Pixel_5_API_30</DefaultDevice>
77
<AndroidDesignerPreferredTheme>AppTheme</AndroidDesignerPreferredTheme>
88
<AndroidDesignerPreferredDevice>automotive_1024p_landscape</AndroidDesignerPreferredDevice>

0 commit comments

Comments
 (0)