mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
fix internal storage messages
This commit is contained in:
parent
3b3e822d78
commit
b0932af025
@ -72,8 +72,7 @@ static char screenshot_dir[PATH_MAX_LENGTH];
|
||||
static char downloads_dir[PATH_MAX_LENGTH];
|
||||
static char apk_dir[PATH_MAX_LENGTH];
|
||||
static char app_dir[PATH_MAX_LENGTH];
|
||||
static char internal_storage_path[PATH_MAX_LENGTH];
|
||||
static char internal_storage_app_path[PATH_MAX_LENGTH];
|
||||
|
||||
#else
|
||||
static const char *proc_apm_path = "/proc/apm";
|
||||
static const char *proc_acpi_battery_path = "/proc/acpi/battery";
|
||||
|
@ -46,7 +46,8 @@
|
||||
|
||||
bool test_permissions(const char *path);
|
||||
|
||||
char sdcard_dir[PATH_MAX_LENGTH];
|
||||
char internal_storage_path[PATH_MAX_LENGTH];
|
||||
char internal_storage_app_path[PATH_MAX_LENGTH];
|
||||
|
||||
struct android_app;
|
||||
|
||||
|
@ -664,9 +664,9 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
||||
menu_entries_add_enum(info->list, tmp, "", MENU_ENUM_LABEL_UNKNOWN, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
|
||||
#ifdef ANDROID
|
||||
bool perms = test_permissions(sdcard_dir);
|
||||
bool perms = test_permissions(internal_storage_path);
|
||||
|
||||
snprintf(tmp, sizeof(tmp), "%s: %s", "Internal SD card status",
|
||||
snprintf(tmp, sizeof(tmp), "%s: %s", "Internal storage status",
|
||||
perms ? "read-write" : "read-only");
|
||||
menu_entries_add_enum(info->list, tmp, "",
|
||||
MENU_ENUM_LABEL_UNKNOWN, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user