From 0329b2ee9209981cd58096777a79accf772c1297 Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:46:51 +0200 Subject: [PATCH] fix: use existing config folders solves https://github.com/ArmCord/ArmCord/issues/617 after package name change --- src/common/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/config.ts b/src/common/config.ts index 43dd0fa..9584d33 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -10,6 +10,10 @@ export function checkForDataFolder(): void { console.log("Found armcord-data folder. Running in portable mode."); app.setPath("userData", dataPath); } + if (path.join(app.getPath("appData"), "ArmCord")) { + console.log("Found existing ArmCord folder."); + app.setPath("userData", path.join(app.getPath("appData"), "ArmCord")); + } } export function getConfigLocation(): string {