mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix: use existing config folders
solves https://github.com/ArmCord/ArmCord/issues/617 after package name change
This commit is contained in:
parent
35a321bd59
commit
0329b2ee92
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ export function checkForDataFolder(): void {
|
||||||
console.log("Found armcord-data folder. Running in portable mode.");
|
console.log("Found armcord-data folder. Running in portable mode.");
|
||||||
app.setPath("userData", dataPath);
|
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 {
|
export function getConfigLocation(): string {
|
||||||
|
|
Loading…
Reference in a new issue