android: READ_MEDIA_IMAGES is now forbidden..

This commit is contained in:
luboslenco
2026-06-03 09:42:13 +02:00
parent 7d5479f8e1
commit 5629f6890f
4 changed files with 49 additions and 70 deletions
-2
View File
@@ -97,8 +97,6 @@ any_map_t *import_texture_importers;
#ifdef IRON_WINDOWS
char *ui_files_default_path = "C:\\Users";
#elif defined(IRON_ANDROID)
char *ui_files_default_path = "/storage/emulated/0/Download";
#elif defined(IRON_MACOS)
char *ui_files_default_path = "/Users";
#else
+1 -20
View File
@@ -120,28 +120,9 @@ void tab_browser_go_to_cloud() {
tab_browser_hpath->text = "cloud";
}
#ifdef IRON_ANDROID
void tab_browser_go_to_disk_android_menu() {
if (ui_menu_button(tr("Download"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(ui_files_default_path);
}
if (ui_menu_button(tr("Pictures"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/Pictures";
}
if (ui_menu_button(tr("Camera"), "", ICON_FOLDER)) {
tab_browser_hpath->text = "/storage/emulated/0/DCIM/Camera";
}
if (ui_menu_button(tr("Projects"), "", ICON_FOLDER)) {
tab_browser_hpath->text = string_copy(iron_internal_save_path());
}
}
#endif
void tab_browser_go_to_disk() {
#ifdef IRON_ANDROID
ui_menu_draw(&tab_browser_go_to_disk_android_menu, -1, -1);
tab_browser_hpath->text = string_copy(iron_internal_save_path());
#else
tab_browser_hpath->text = string_copy(ui_files_default_path);
#endif