From 69cc3d1368ff43d7f3c98043d5f7fe86ff700989 Mon Sep 17 00:00:00 2001 From: Alvin Dimas Praditya Date: Mon, 26 Aug 2024 05:48:33 +0700 Subject: [PATCH] fix patch status amdfriend --- src/patches/amdfriend.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patches/amdfriend.ts b/src/patches/amdfriend.ts index d5cc4f9..a432f69 100644 --- a/src/patches/amdfriend.ts +++ b/src/patches/amdfriend.ts @@ -29,7 +29,7 @@ export default class Amdfriend extends AppPatch { if(this.patched() === PatchType.PATCHED) return console.log(`${this.appName} already patched. Ignoring...`); await parallelizer(this.patchDirectories(), cpus().length); - if(!isRoot()) fs.writeFileSync(this.patchedPath, ""); + if(isRoot()) fs.writeFileSync(this.patchedPath, ""); } *patchDirectories(): Generator>{ for (const dirent of walkDirectory(this.appPath, ["", ".dylib"], [".DS_Store"])) {