aboutsummaryrefslogtreecommitdiff
path: root/src/patcher.ts
diff options
context:
space:
mode:
authorrushii <33725716+DiamondMiner88@users.noreply.github.com>2022-10-31 17:47:07 -0700
committerGitHub <noreply@github.com>2022-11-01 01:47:07 +0100
commit0c25278c5923ff7fdc22730557da00601b8cf1d3 (patch)
treebe9d971a005fe97f92073cb73cc9cc70cf30deac /src/patcher.ts
parent0fda900ccc5c7c4560a911b028d53faece620bfc (diff)
downloadVencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.tar.gz
Vencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.tar.bz2
Vencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.zip
fix renamed app.asar detection on Windows (#185)
Diffstat (limited to 'src/patcher.ts')
-rw-r--r--src/patcher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patcher.ts b/src/patcher.ts
index 023c0af..85f493b 100644
--- a/src/patcher.ts
+++ b/src/patcher.ts
@@ -30,7 +30,7 @@ console.log("[Vencord] Starting up...");
const injectorPath = require.main!.filename;
// special discord_arch_electron injection method
-const asarName = injectorPath.endsWith("app.asar/index.js") ? "_app.asar" : "app.asar";
+const asarName = require.main!.path.endsWith("app.asar") ? "_app.asar" : "app.asar";
// The original app.asar
const asarPath = join(dirname(injectorPath), "..", asarName);