diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-29 11:49:01 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-29 11:49:01 +0200 |
commit | 9336a924065553d94732941900375385284c47ee (patch) | |
tree | a766f3851e210bd155ab1eb23aee7b383d57c217 /src/fs | |
parent | 63fd641252dd035e51730fa2172f6faea0d5f756 (diff) | |
download | manaplus-9336a924065553d94732941900375385284c47ee.tar.gz manaplus-9336a924065553d94732941900375385284c47ee.tar.bz2 manaplus-9336a924065553d94732941900375385284c47ee.tar.xz manaplus-9336a924065553d94732941900375385284c47ee.zip |
switch: fix software keyboard validation event, fix paths
Diffstat (limited to 'src/fs')
-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) |