fix: use existing config folders

solves https://github.com/ArmCord/ArmCord/issues/617 after package name change
This commit is contained in:
smartfrigde 2024-06-15 10:46:51 +02:00
parent 35a321bd59
commit 0329b2ee92

View file

@ -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 {