summaryrefslogtreecommitdiffstats
path: root/src/common/fs
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-12-18 08:33:09 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:27 +0200
commitf8b87e6fabc9f9f202a7eb35f13d997165b9f94c (patch)
tree4d319957eb4725796d9b69d45df3a61d80c2daff /src/common/fs
parentcommon: logging: Implement Android logcat backend. (diff)
downloadyuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.gz
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.bz2
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.lz
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.xz
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.zst
yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.zip
Diffstat (limited to 'src/common/fs')
-rw-r--r--src/common/fs/path_util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp
index defa3e918..ca755b053 100644
--- a/src/common/fs/path_util.cpp
+++ b/src/common/fs/path_util.cpp
@@ -95,6 +95,13 @@ private:
yuzu_path_cache = yuzu_path / CACHE_DIR;
yuzu_path_config = yuzu_path / CONFIG_DIR;
+#elif ANDROID
+ // On Android internal storage is mounted as "/sdcard"
+ if (Exists("/sdcard")) {
+ yuzu_path = "/sdcard/yuzu-emu";
+ yuzu_path_cache = yuzu_path / CACHE_DIR;
+ yuzu_path_config = yuzu_path / CONFIG_DIR;
+ }
#else
yuzu_path = GetCurrentDir() / PORTABLE_DIR;