summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-29 11:49:01 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-29 11:49:01 +0200
commit9336a924065553d94732941900375385284c47ee (patch)
treea766f3851e210bd155ab1eb23aee7b383d57c217 /src/dirs.cpp
parent63fd641252dd035e51730fa2172f6faea0d5f756 (diff)
downloadManaVerse-9336a924065553d94732941900375385284c47ee.tar.gz
ManaVerse-9336a924065553d94732941900375385284c47ee.tar.bz2
ManaVerse-9336a924065553d94732941900375385284c47ee.tar.xz
ManaVerse-9336a924065553d94732941900375385284c47ee.zip
switch: fix software keyboard validation event, fix paths
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 26c0032d9..e33407fff 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -359,6 +359,8 @@ void Dirs::initLocalDataDir()
"local");
#elif defined __native_client__
settings.localDataDir = pathJoin(_nacl_dir, "local");
+#elif defined __SWITCH__
+ settings.localDataDir = pathJoin(VirtFs::getUserDir(),"local");
#else // __APPLE__
settings.localDataDir = pathJoin(VirtFs::getUserDir(),
@@ -421,6 +423,8 @@ void Dirs::initConfigDir()
"config");
#elif defined __native_client__
settings.configDir = pathJoin(_nacl_dir, "config");
+#elif defined __SWITCH__
+ settings.configDir = pathJoin(VirtFs::getUserDir(), "config");
#else // __APPLE__
settings.configDir = pathJoin(VirtFs::getUserDir(),