Split Android storage paths from legacy fallback

This commit is contained in:
2026-06-17 10:27:01 +02:00
parent 4bef707c81
commit 5491ed4bf5
9 changed files with 76 additions and 18 deletions

View File

@@ -276,7 +276,7 @@ JNIEXPORT void JNICALL Java_com_omixlab_panopainter_MainActivity_pickExternalCal
App::I->data_path = file_path;
App::I->work_path = file_path;
App::I->rec_path = file_path + "/frames";
pp::platform::legacy::set_legacy_storage_paths({
pp::platform::legacy::set_legacy_android_storage_paths({
App::I->data_path,
App::I->work_path,
App::I->rec_path,
@@ -716,7 +716,7 @@ static int engine_init_display(struct engine* engine) {
if (App::I->data_path.empty() || App::I->data_path == ".")
App::I->data_path = get_data_path();
LOG("data_path %s", App::I->data_path.c_str());
pp::platform::legacy::set_legacy_storage_paths({
pp::platform::legacy::set_legacy_android_storage_paths({
App::I->data_path,
App::I->work_path.empty() ? App::I->data_path : App::I->work_path,
App::I->rec_path,