Skip to content

Commit

Permalink
fix: missing patched path discord
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Oct 14, 2024
1 parent a48fcff commit 2679b4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/patches/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2679b4e

Please sign in to comment.