From 1079f61260101fdc451bfa151577e71c6332c8a4 Mon Sep 17 00:00:00 2001 From: SachinVin Date: Sat, 27 Nov 2021 23:05:22 +0530 Subject: [PATCH] Android:file_util.cpp: remove unnecessary ROOT_DIR --- src/common/file_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 46401bc19..7b360967b 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -696,8 +696,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 - if (FileUtil::Exists(ROOT_DIR DIR_SEP SDCARD_DIR)) { - user_path = ROOT_DIR DIR_SEP SDCARD_DIR DIR_SEP EMU_DATA_DIR DIR_SEP; + if (FileUtil::Exists(DIR_SEP SDCARD_DIR)) { + user_path = DIR_SEP SDCARD_DIR DIR_SEP EMU_DATA_DIR DIR_SEP; g_paths.emplace(UserPath::ConfigDir, user_path + CONFIG_DIR DIR_SEP); g_paths.emplace(UserPath::CacheDir, user_path + CACHE_DIR DIR_SEP); }