Skip to content

Commit

Permalink
refactor: tweak the user paths for macOS/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Oct 3, 2023
1 parent 728f98f commit af0295b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/CommonPaths.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#else
#define USERDATA_DIR "user"
#define DOLPHIN_DATA_DIR "SlippiOnline"
#define NETPLAY_USER_DIR "slippi-netplay-beta"
#define PLAYBACK_USER_DIR "slippi-playback-beta"
#define NETPLAY_USER_DIR "slippi-dolphin/netplay-beta"
#define PLAYBACK_USER_DIR "slippi-dolphin/playback-beta"
#define NORMAL_USER_DIR "dolphin-emu"
#endif
#else // ifndef STEAM
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Common/FileUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ std::string GetBundleDirectory()
std::string GetApplicationSupportDirectory()
{
std::string dir =
File::GetHomeDirectory() + "/Library/Application Support/com.project-slippi.dolphin-beta";
File::GetHomeDirectory() + "/Library/Application Support/com.project-slippi.dolphin";

if (!CreateDir(dir))
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/UICommon/UICommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ void SetUserDirectory(std::string custom_path)
// we'll just have a netplay and playback folder inside the identifer similar to how
// the Launcher does it to keep with some convention.
#ifdef IS_PLAYBACK
user_path = File::GetApplicationSupportDirectory() + "/playback/User" DIR_SEP;
user_path = File::GetApplicationSupportDirectory() + "/playback-beta/User" DIR_SEP;
#else
user_path = File::GetApplicationSupportDirectory() + "/netplay/User" DIR_SEP;
user_path = File::GetApplicationSupportDirectory() + "/netplay-beta/User" DIR_SEP;
#endif
#elif defined(ANDROID)
if (env_path)
Expand Down

0 comments on commit af0295b

Please sign in to comment.