fix edge case where Discord installs can go corrupt (#4472)

This commit is contained in:
theo 2026-07-31 21:40:47 +01:00 • committed by GitHub
parent 8fbcdf5604
commit 738b7e44a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ function patchLatest() {
const newAppAsar = join(resources, "app.asar");
const newAppAsarBackup = join(resources, "_app.asar");
if (!existsSync(oldVencordAsar) || !existsSync(newAppAsar)) return;
if (!existsSync(oldVencordAsar) || !existsSync(newAppAsar) || existsSync(newAppAsarBackup)) return;
console.info(`[Vencord] Detected Host Update (${currentVersion} -> ${latestVersion}). Repatching...`);