diff --git a/src/patches/discord.ts b/src/patches/discord.ts index 2390a79..80db310 100644 --- a/src/patches/discord.ts +++ b/src/patches/discord.ts @@ -25,8 +25,12 @@ export default class Discord extends AppPatch { } } patched() { - const fileExists = fs.existsSync(this.patchedPath); - return (fileExists ? PatchType.PATCHED : PatchType.UNPATCHED); + try { + const fileExists = fs.existsSync(this.patchedPath); + return (fileExists ? PatchType.PATCHED : PatchType.UNPATCHED); + } catch { + return PatchType.UNPATCHED; + } } supported(): boolean { return this.appName === this.originalAppName;