diff options
| author | 2022-12-17 23:33:09 -0800 | |
|---|---|---|
| committer | 2023-06-03 00:05:27 -0700 | |
| commit | f8b87e6fabc9f9f202a7eb35f13d997165b9f94c (patch) | |
| tree | 4d319957eb4725796d9b69d45df3a61d80c2daff | |
| parent | common: logging: Implement Android logcat backend. (diff) | |
| download | yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.gz yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.tar.xz yuzu-f8b87e6fabc9f9f202a7eb35f13d997165b9f94c.zip | |
common: fs: Implement for Android.
| -rw-r--r-- | src/common/fs/path_util.cpp | 7 |
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: | |||
| 95 | 95 | ||
| 96 | yuzu_path_cache = yuzu_path / CACHE_DIR; | 96 | yuzu_path_cache = yuzu_path / CACHE_DIR; |
| 97 | yuzu_path_config = yuzu_path / CONFIG_DIR; | 97 | yuzu_path_config = yuzu_path / CONFIG_DIR; |
| 98 | #elif ANDROID | ||
| 99 | // On Android internal storage is mounted as "/sdcard" | ||
| 100 | if (Exists("/sdcard")) { | ||
| 101 | yuzu_path = "/sdcard/yuzu-emu"; | ||
| 102 | yuzu_path_cache = yuzu_path / CACHE_DIR; | ||
| 103 | yuzu_path_config = yuzu_path / CONFIG_DIR; | ||
| 104 | } | ||
| 98 | #else | 105 | #else |
| 99 | yuzu_path = GetCurrentDir() / PORTABLE_DIR; | 106 | yuzu_path = GetCurrentDir() / PORTABLE_DIR; |
| 100 | 107 | ||