Skip to content

Commit

Permalink
Add just install my game instead of mod button
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite committed Feb 24, 2024
1 parent a12ff6c commit a93dd80
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
33 changes: 26 additions & 7 deletions QuestAppVersionSwitcher/Assets/html/flows/beat_saber_modding.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,22 @@ <h3>Modding your game</h3>
Status: <code id="patchingStatus"></code>
</div>
</div>
<br>
<br>
<br>
<br>
<button style="font-size: .7em;" onclick="ModSettingsDowngradedGame()"><i>Open modding settings</i></button>
<br>
<br>
<br>
<br>
<br>
<button style="font-size: 0.7rem" onclick="InstallDowngradedGameWithoutModding()">Just install without modding</button>
</div>
<div class="content hidden" id="afterpatch">
<h1>Install Game</h1>
<p>Your game is almost modded. Press <code>Install game</code> below and follow the instructions to finish modding your game</p>
<button onclick="RestoreBackup()">Install game</button>
<br>
<br>
<br>
<br>
<button style="font-size: .7em;" onclick="ModSettings()"><i>Open modding settings</i></button>
</div>
<div class="content hidden" id="afterrestore">
<h1>Game modded!</h1>
Expand Down Expand Up @@ -136,6 +142,12 @@ <h1>Download is done!</h1>
<br>
<br>
<button style="font-size: .7em;" onclick="ModSettingsDowngradedGame()"><i>Open modding settings</i></button>
<br>
<br>
<br>
<br>
<br>
<button style="font-size: 0.7rem" onclick="InstallDowngradedGameWithoutModding()">Just install without modding</button>
</div>
<div class="content hidden" id="offline">
<h1>It looks like you're offline!</h1>
Expand Down Expand Up @@ -266,8 +278,8 @@ <h2>Upload logs</h2>
showSupportButton.innerHTML = "Help"
}
}

var patchExtras = ""
var downgradedBackupName = ""
function ModSettingsDowngradedGame() {
location = start + `/?tab=patching&backuptopatch=${lastDownloadProgress.backupName}`
}
Expand Down Expand Up @@ -488,6 +500,13 @@ <h2>Upload logs</h2>
function RestoreBackup() {
location = start + `/?package=com.beatgames.beatsaber&backup=${patchReport.backupName}&restorenow=true&noaccesscheck=true&afterrestore=${encodeURIComponent(`/flows/beat_saber_modding?tab=afterrestore`)}`
}

function InstallDowngradedGameWithoutModding() {
patchReport = {
backupName: lastDownloadProgress.backupName
}
RestoreBackup()
}

function ResetPatchPage() {

Expand Down
2 changes: 1 addition & 1 deletion QuestAppVersionSwitcher/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.15.15" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="136">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.15.16" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="137">
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="32" />
<uses-permission android:name="oculus.permission.handtracking" />
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
Expand Down
4 changes: 2 additions & 2 deletions QuestAppVersionSwitcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// Minor Version
// Build Number
// Revision
[assembly: AssemblyVersion("1.15.15.0")]
[assembly: AssemblyFileVersion("1.15.15.0")]
[assembly: AssemblyVersion("1.15.16.0")]
[assembly: AssemblyFileVersion("1.15.16.0")]

0 comments on commit a93dd80

Please sign in to comment.