Skip to content

Commit

Permalink
fix(macOS): just use the new user folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 7, 2023
1 parent ef0966a commit 8107503
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/dolphin/install/installation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,10 @@ export class DolphinInstallation {
return path.join(this.installationFolder, "User");
}
case "darwin": {
const oldConfigPath = path.join(this.installationFolder, "Slippi Dolphin.app", "Contents", "Resources", "User");
const configPath = path.join(os.homedir(), "Library", "Application Support", "com.project-slippi.dolphin");
const userFolderName = this.dolphinLaunchType === DolphinLaunchType.NETPLAY ? "netplay/User" : "playback/User";
const newConfigPath = path.join(
os.homedir(),
"Library",
"Application Support",
"com.project-slippi.dolphin",
userFolderName,
);

// TODO: remove this once we've deployed the new dolphin
const configPath = fs.pathExistsSync(newConfigPath) ? newConfigPath : oldConfigPath;
return configPath;
return path.join(configPath, userFolderName);
}
case "linux": {
const configPath = path.join(os.homedir(), ".config");
Expand Down

0 comments on commit 8107503

Please sign in to comment.