From 0c25278c5923ff7fdc22730557da00601b8cf1d3 Mon Sep 17 00:00:00 2001 From: rushii <33725716+DiamondMiner88@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:47:07 -0700 Subject: [PATCH] fix renamed app.asar detection on Windows (#185) --- src/patcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patcher.ts b/src/patcher.ts index 023c0af5..85f493b9 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);