use base folder on android so the error matches (#815)

also makes extracting vanilla or applying updates easier
This commit is contained in:
stonedDiscord 2022-07-19 09:20:14 +02:00 committed by GitHub
parent 3e0e4583cb
commit 972ce47fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,12 +33,12 @@ QString AOApplication::get_base_path()
QString base_path = ""; QString base_path = "";
#ifdef ANDROID #ifdef ANDROID
QString sdcard_storage = getenv("SECONDARY_STORAGE"); QString sdcard_storage = getenv("SECONDARY_STORAGE");
if (dir_exists(sdcard_storage + "/AO2/")) { if (dir_exists(sdcard_storage + "/base/")) {
base_path = sdcard_storage + "/AO2/"; base_path = sdcard_storage + "/base/";
} }
else { else {
QString external_storage = getenv("EXTERNAL_STORAGE"); QString external_storage = getenv("EXTERNAL_STORAGE");
base_path = external_storage + "/AO2/"; base_path = external_storage + "/base/";
} }
#elif defined(__APPLE__) #elif defined(__APPLE__)
base_path = applicationDirPath() + "/../../../base/"; base_path = applicationDirPath() + "/../../../base/";