android: READ_MEDIA_IMAGES is now forbidden..
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user