diff options
Diffstat (limited to 'src/fs/paths.cpp')
-rw-r--r-- | src/fs/paths.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp index 036020fce..1e76f249d 100644 --- a/src/fs/paths.cpp +++ b/src/fs/paths.cpp @@ -257,13 +257,12 @@ std::string getHomePath() #else // defined(UNITTESTS) && defined(UNITESTSDIR) #ifdef WIN32 return getSpecialFolderLocation(CSIDL_LOCAL_APPDATA); +#elif __SWITCH__ + return VirtFs::getBaseDir(); #else const char *path = getenv("HOME"); if (path == nullptr) { -#ifdef __SWITCH__ - return "/switch/manaplus"; -#else const uid_t uid = getuid(); const struct passwd *const pw = getpwuid(uid); if (pw != nullptr && @@ -273,7 +272,6 @@ std::string getHomePath() } if (path == nullptr) return dirSeparator; -#endif } std::string dir = path; if (findLast(dir, std::string(dirSeparator)) == false) |