android: init user path
This commit is contained in:
parent
28b2ee9cd7
commit
9848610ea2
10 changed files with 153 additions and 5 deletions
|
@ -695,6 +695,8 @@ void SetUserPath(const std::string& path) {
|
|||
|
||||
g_paths.emplace(UserPath::ConfigDir, user_path + CONFIG_DIR DIR_SEP);
|
||||
g_paths.emplace(UserPath::CacheDir, user_path + CACHE_DIR DIR_SEP);
|
||||
#elif ANDROID
|
||||
ASSERT_MSG(false, "Specified path {} is not valid", path);
|
||||
#else
|
||||
if (FileUtil::Exists(ROOT_DIR DIR_SEP USERDATA_DIR)) {
|
||||
user_path = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue