Skip to content

Commit

Permalink
wrong app name
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Aug 25, 2024
1 parent 78571d1 commit 65def7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/patches/apppatch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "fs";

type Patched = 1 | 0 | -1;
import {PatchType} from "@src/types";

export default class AppPatch {
appName: string;
Expand All @@ -9,7 +8,7 @@ export default class AppPatch {
this.appPath = appPath;
this.appName = appPath.split("/").pop()!.replace(/.app/g, '');
}
patched(): Patched {
patched(): PatchType {
throw new Error(`Method "patched" must be implemented on class ${this.constructor.name}`);
}
patch() {
Expand All @@ -20,7 +19,7 @@ export default class AppPatch {
}
pathExists(path: string): boolean {
if(fs.existsSync(path)) return true;
console.log("Found Discord app but can't find discord data! Please open the discord first before install.");
console.log(`Found ${this.appName} app but can't find discord data! Please open the app first before patching.`);
return false;
}
}

0 comments on commit 65def7b

Please sign in to comment.