mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 19:55:50 +00:00
refactor: tweak the user paths for macOS/Linux
This commit is contained in:
parent
728f98ff6c
commit
af0295b67c
3 changed files with 5 additions and 5 deletions
|
@ -21,8 +21,8 @@
|
||||||
#else
|
#else
|
||||||
#define USERDATA_DIR "user"
|
#define USERDATA_DIR "user"
|
||||||
#define DOLPHIN_DATA_DIR "SlippiOnline"
|
#define DOLPHIN_DATA_DIR "SlippiOnline"
|
||||||
#define NETPLAY_USER_DIR "slippi-netplay-beta"
|
#define NETPLAY_USER_DIR "slippi-dolphin/netplay-beta"
|
||||||
#define PLAYBACK_USER_DIR "slippi-playback-beta"
|
#define PLAYBACK_USER_DIR "slippi-dolphin/playback-beta"
|
||||||
#define NORMAL_USER_DIR "dolphin-emu"
|
#define NORMAL_USER_DIR "dolphin-emu"
|
||||||
#endif
|
#endif
|
||||||
#else // ifndef STEAM
|
#else // ifndef STEAM
|
||||||
|
|
|
@ -758,7 +758,7 @@ std::string GetBundleDirectory()
|
||||||
std::string GetApplicationSupportDirectory()
|
std::string GetApplicationSupportDirectory()
|
||||||
{
|
{
|
||||||
std::string dir =
|
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))
|
if (!CreateDir(dir))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
// we'll just have a netplay and playback folder inside the identifer similar to how
|
||||||
// the Launcher does it to keep with some convention.
|
// the Launcher does it to keep with some convention.
|
||||||
#ifdef IS_PLAYBACK
|
#ifdef IS_PLAYBACK
|
||||||
user_path = File::GetApplicationSupportDirectory() + "/playback/User" DIR_SEP;
|
user_path = File::GetApplicationSupportDirectory() + "/playback-beta/User" DIR_SEP;
|
||||||
#else
|
#else
|
||||||
user_path = File::GetApplicationSupportDirectory() + "/netplay/User" DIR_SEP;
|
user_path = File::GetApplicationSupportDirectory() + "/netplay-beta/User" DIR_SEP;
|
||||||
#endif
|
#endif
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
if (env_path)
|
if (env_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue