From 1c2ed4679dc07dc5c33953784bd3599ced2f853b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 10 Apr 2023 19:26:52 +0200 Subject: [PATCH] Fix custom vencord location --- src/main/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/constants.ts b/src/main/constants.ts index 96c9970..d5937f7 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -14,7 +14,8 @@ export const VENCORD_SETTINGS_FILE = join(VENCORD_SETTINGS_DIR, "settings.json") // needs to be inline require because of circular dependency // as otherwise "DATA_DIR" (which is used by ./settings) will be uninitialised -export const VENCORD_FILES_DIR = require("./settings").Settings.vencordDir || join(DATA_DIR, "vencordDist"); +export const VENCORD_FILES_DIR = + (require("./settings") as typeof import("./settings")).Settings.store.vencordDir || join(DATA_DIR, "vencordDist"); export const USER_AGENT = `VencordDesktop/${app.getVersion()} (https://github.com/Vencord/Electron)`;