Skip to content

Commit e03d622

Browse files
ComputerEliteComputerElite
authored andcommitted
Add quest 3 check
1 parent 510f62a commit e03d622

1 file changed

Lines changed: 36 additions & 22 deletions

File tree

QuestAppVersionSwitcher/Assets/html/flows/beat_saber_modding.html

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ <h1>Download is done!</h1>
120120
<h1>It looks like you're offline!</h1>
121121
<p>Please enable WiFi and restart QuestAppVersionSwitcher to continue.</p>
122122
</div>
123+
<div class="content hidden" id="nodowngrade">
124+
<h1>Quest 3 is currently not moddable with QuestAppVersionSwitcher!</h1>
125+
<p>The modding team is working hard to make Quest 3 modding work. In the meantime if you have a PC you can use QuestPatcher to mod your game. Please refer to discord.gg/beatsabermods (Discord Server) for more information.</p>
126+
</div>
123127
<div style="position: fixed; bottom: 10px; left: 10px;">
124128
<button id="showSupportButton" onclick="ShowSupport()">Help</button>
125129
<div id="helpSection" style="display: none;" class="box">
@@ -138,6 +142,7 @@ <h2>Upload logs</h2>
138142
<code id="logsInfoText" class="hidden">
139143

140144
</code>
145+
<button onclick="window.location = `/setup`">Go back</button>
141146
</div>
142147
</div>
143148
<script>
@@ -464,35 +469,44 @@ <h2>Upload logs</h2>
464469
}
465470

466471
function FirstOpen() {
467-
UpdateModdedStatus().then(() => {
468-
if(!moddedStatus.isInstalled) {
469-
// Downgrade
470-
OpenTab("downgrade")
471-
CheckDowngrade()
472+
fetch(start + "/api/android/device").then(res => res.json().then(j => {
473+
if(j.device == "eureka") {
474+
// Logged in
475+
OpenTab("nodowngrade")
472476
} else {
473-
UpdateSupportedBeatSaberVersions().then(() => {
474-
if(SupportedBeatSaberVersions.length <= 0) {
475-
// OH NO; USER IS OFFLINE
476-
OpenTab("offline")
477-
} else if(SupportedBeatSaberVersions[0] == moddedStatus.version) {
478-
// Continue with modding
479-
480-
if(moddedStatus.isPatched) {
481-
// Already modded
482-
OpenTab("alreadymodded")
483-
} else {
484-
// Not modded
485-
OpenTab("modgame")
486-
UpdateModGamePage()
487-
}
488-
} else {
477+
// Not logged in
478+
UpdateModdedStatus().then(() => {
479+
if(!moddedStatus.isInstalled) {
489480
// Downgrade
490481
OpenTab("downgrade")
491482
CheckDowngrade()
483+
} else {
484+
UpdateSupportedBeatSaberVersions().then(() => {
485+
if(SupportedBeatSaberVersions.length <= 0) {
486+
// OH NO; USER IS OFFLINE
487+
OpenTab("offline")
488+
} else if(SupportedBeatSaberVersions[0] == moddedStatus.version) {
489+
// Continue with modding
490+
491+
if(moddedStatus.isPatched) {
492+
// Already modded
493+
OpenTab("alreadymodded")
494+
} else {
495+
// Not modded
496+
OpenTab("modgame")
497+
UpdateModGamePage()
498+
}
499+
} else {
500+
// Downgrade
501+
OpenTab("downgrade")
502+
CheckDowngrade()
503+
}
504+
})
492505
}
493506
})
494507
}
495-
})
508+
}))
509+
496510
}
497511

498512
var SupportedBeatSaberVersions = []

0 commit comments

Comments
 (0)