mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-06-15 03:47:11 +02:00
Add the ability to update BepInEx
This commit is contained in:
@@ -589,6 +589,7 @@ async function deleteBepinexBackup() {
|
||||
|
||||
async function setBepinexVersion() {
|
||||
const bepinexVersionText = document.getElementById("bepinex-version-text");
|
||||
const bepinexInstallButton = document.getElementById("install-bepinex-button");
|
||||
if (bepinexVersionText == undefined) {
|
||||
return;
|
||||
}
|
||||
@@ -601,8 +602,10 @@ async function setBepinexVersion() {
|
||||
} else {
|
||||
bepinexVersionText.innerText = `BepInEx ${bepinexBackupVersion} is backed up`;
|
||||
}
|
||||
bepinexInstallButton.innerText = "Install";
|
||||
} else {
|
||||
bepinexVersionText.innerText = `BepInEx ${bepinexVersion} is installed`;
|
||||
bepinexInstallButton.innerText = "Update";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user