fix edge case where Discord installs can go corrupt (#4472)
This commit is contained in:
parent
8fbcdf5604
commit
738b7e44a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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...`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue