From bf1d47244f4d6bc6cec681b16fbc02f029a926d0 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sat, 16 Sep 2023 17:11:36 +0300 Subject: [PATCH] hardcode path utils to external for now --- loader/src/platform/android/util.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/loader/src/platform/android/util.cpp b/loader/src/platform/android/util.cpp index 78d33be4..37fdf550 100644 --- a/loader/src/platform/android/util.cpp +++ b/loader/src/platform/android/util.cpp @@ -10,11 +10,19 @@ using namespace geode::prelude; #include ghc::filesystem::path dirs::getGameDir() { - return CCFileUtils::sharedFileUtils()->getWritablePath().c_str(); + return ghc::filesystem::path( + "/storage/emulated/0/Android/data/com.geode.launcher/files/game" + // "/data/user/0/com.geode.launcher/files/" + /*CCFileUtils::sharedFileUtils()->getWritablePath().c_str()*/ + ); } ghc::filesystem::path dirs::getSaveDir() { - return CCFileUtils::sharedFileUtils()->getWritablePath().c_str(); + return ghc::filesystem::path( + "/storage/emulated/0/Android/data/com.geode.launcher/files/save" + // "/data/user/0/com.geode.launcher/files/" + /*CCFileUtils::sharedFileUtils()->getWritablePath().c_str()*/ + ); } void utils::web::openLinkInBrowser(std::string const& url) {