mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
add removable storage shortcut
This commit is contained in:
parent
a1a70c63ef
commit
0a83f7a888
@ -1865,8 +1865,12 @@ static int frontend_linux_parse_drive_list(void *data)
|
||||
FILE_TYPE_DIRECTORY, 0, 0);
|
||||
menu_entries_append_enum(list,
|
||||
internal_storage_path,
|
||||
msg_hash_to_str(MSG_INTERNAL_MEMORY),
|
||||
MSG_INTERNAL_MEMORY, FILE_TYPE_DIRECTORY, 0, 0);
|
||||
msg_hash_to_str(MSG_INTERNAL_STORAGE),
|
||||
MSG_INTERNAL_STORAGE, FILE_TYPE_DIRECTORY, 0, 0);
|
||||
menu_entries_append_enum(list,
|
||||
"/storage",
|
||||
msg_hash_to_str(MSG_REMOVABLE_STORAGE),
|
||||
MSG_REMOVABLE_STORAGE, FILE_TYPE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
|
||||
menu_entries_append_enum(list, "/", "",
|
||||
|
@ -3488,8 +3488,10 @@ const char *msg_hash_to_str_chs(enum msg_hash_enums msg)
|
||||
return "Preset Filename";
|
||||
case MSG_INTERFACE:
|
||||
return "接口";
|
||||
case MSG_INTERNAL_MEMORY:
|
||||
case MSG_INTERNAL_STORAGE:
|
||||
return "内部存储";
|
||||
case MSG_REMOVABLE_STORAGE:
|
||||
return "Removable Storage";
|
||||
case MSG_INVALID_NICKNAME_SIZE:
|
||||
return "Invalid nickname size.";
|
||||
case MSG_IN_BYTES:
|
||||
|
@ -1916,8 +1916,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"Interface")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
"Internal Memory")
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"Internal Storage")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -1882,8 +1882,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"Interface")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
"Internal Memory")
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"Internal Storage")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -2189,8 +2189,10 @@ const char *msg_hash_to_str_it(enum msg_hash_enums msg)
|
||||
return "Normale";
|
||||
case MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR_EARLY:
|
||||
return "Presto";
|
||||
case MSG_INTERNAL_MEMORY:
|
||||
case MSG_INTERNAL_STORAGE:
|
||||
return "Memoria interna";
|
||||
case MSG_REMOVABLE_STORAGE:
|
||||
return "Removable storage";
|
||||
case MSG_EXTERNAL_APPLICATION_DIR:
|
||||
return "Directory app esterna";
|
||||
case MSG_APPLICATION_DIR:
|
||||
|
@ -1918,8 +1918,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"インタフェース")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"内部メモリ")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -1916,8 +1916,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"Interface")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
"Internal Memory")
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"Internal Storage")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -1910,8 +1910,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"Interface")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
"Internal Memory")
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"Internal Storage")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -1916,8 +1916,10 @@ MSG_HASH(MSG_INPUT_PRESET_FILENAME,
|
||||
"Preset Filename")
|
||||
MSG_HASH(MSG_INTERFACE,
|
||||
"Interface")
|
||||
MSG_HASH(MSG_INTERNAL_MEMORY,
|
||||
"Internal Memory")
|
||||
MSG_HASH(MSG_INTERNAL_STORAGE,
|
||||
"Internal Storage")
|
||||
MSG_HASH(MSG_REMOVABLE_STORAGE,
|
||||
"Removable Storage")
|
||||
MSG_HASH(MSG_INVALID_NICKNAME_SIZE,
|
||||
"Invalid nickname size.")
|
||||
MSG_HASH(MSG_IN_BYTES,
|
||||
|
@ -3535,8 +3535,10 @@ const char *msg_hash_to_str_vn(enum msg_hash_enums msg)
|
||||
return "Preset Filename";
|
||||
case MSG_INTERFACE:
|
||||
return "Interface";
|
||||
case MSG_INTERNAL_MEMORY:
|
||||
return "Internal Memory";
|
||||
case MSG_INTERNAL_STORAGE:
|
||||
return "Internal Storage";
|
||||
case MSG_REMOVABLE_STORAGE:
|
||||
return "Removable Storage";
|
||||
case MSG_INVALID_NICKNAME_SIZE:
|
||||
return "Invalid nickname size.";
|
||||
case MSG_IN_BYTES:
|
||||
|
@ -51,7 +51,7 @@ static int action_bind_label_internal_memory(
|
||||
const char *label, const char *path,
|
||||
char *s, size_t len)
|
||||
{
|
||||
strlcpy(s, msg_hash_to_str(MSG_INTERNAL_MEMORY), len);
|
||||
strlcpy(s, msg_hash_to_str(MSG_INTERNAL_STORAGE), len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ int menu_cbs_init_bind_label(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_PLAYLIST_COLLECTION_ENTRY:
|
||||
BIND_ACTION_LABEL(cbs, action_bind_label_playlist_collection_entry);
|
||||
break;
|
||||
case MSG_INTERNAL_MEMORY:
|
||||
case MSG_INTERNAL_STORAGE:
|
||||
BIND_ACTION_LABEL(cbs, action_bind_label_internal_memory);
|
||||
break;
|
||||
case MSG_APPLICATION_DIR:
|
||||
|
@ -888,7 +888,8 @@ enum msg_hash_enums
|
||||
MSG_IN_BYTES,
|
||||
MSG_IN_MEGABYTES,
|
||||
MSG_IN_GIGABYTES,
|
||||
MSG_INTERNAL_MEMORY,
|
||||
MSG_INTERNAL_STORAGE,
|
||||
MSG_REMOVABLE_STORAGE,
|
||||
MSG_APPLICATION_DIR,
|
||||
MSG_EXTERNAL_APPLICATION_DIR,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user