mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Rename menu_hash_to_file_type
This commit is contained in:
parent
e59fb6c0d9
commit
450e1f4746
@ -549,9 +549,7 @@ static void mui_render_label_value(mui_handle_t *mui,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
enum menu_file_type entry_type = menu_hash_to_file_type(msg_hash_calculate(value));
|
switch (msg_hash_to_file_type(msg_hash_calculate(value)))
|
||||||
|
|
||||||
switch (entry_type)
|
|
||||||
{
|
{
|
||||||
case MENU_FILE_COMPRESSED:
|
case MENU_FILE_COMPRESSED:
|
||||||
case MENU_FILE_MORE:
|
case MENU_FILE_MORE:
|
||||||
|
@ -1698,9 +1698,7 @@ static void xmb_draw_items(xmb_handle_t *xmb,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
enum menu_file_type entry_type = menu_hash_to_file_type(msg_hash_calculate(entry.value));
|
switch (msg_hash_to_file_type(msg_hash_calculate(entry.value)))
|
||||||
|
|
||||||
switch (entry_type)
|
|
||||||
{
|
{
|
||||||
case MENU_FILE_COMPRESSED:
|
case MENU_FILE_COMPRESSED:
|
||||||
case MENU_FILE_MORE:
|
case MENU_FILE_MORE:
|
||||||
|
@ -1789,7 +1789,7 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
|||||||
if (tmp_str_list->size > 1)
|
if (tmp_str_list->size > 1)
|
||||||
strlcpy(elem1, tmp_str_list->elems[1].data, sizeof(elem1));
|
strlcpy(elem1, tmp_str_list->elems[1].data, sizeof(elem1));
|
||||||
|
|
||||||
switch (menu_hash_to_file_type(msg_hash_calculate(elem1)))
|
switch (msg_hash_to_file_type(msg_hash_calculate(elem1)))
|
||||||
{
|
{
|
||||||
case MENU_FILE_CRC:
|
case MENU_FILE_CRC:
|
||||||
if (string_is_equal(crc_str, elem0))
|
if (string_is_equal(crc_str, elem0))
|
||||||
|
@ -84,7 +84,7 @@ void menu_shader_manager_init(menu_handle_t *menu)
|
|||||||
sizeof(menu->default_slangp));
|
sizeof(menu->default_slangp));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (menu_hash_to_file_type(msg_hash_calculate(path_get_extension(settings->path.shader))))
|
switch (msg_hash_to_file_type(msg_hash_calculate(path_get_extension(settings->path.shader))))
|
||||||
{
|
{
|
||||||
case MENU_FILE_SHADER_PRESET_GLSLP:
|
case MENU_FILE_SHADER_PRESET_GLSLP:
|
||||||
case MENU_FILE_SHADER_PRESET_CGP:
|
case MENU_FILE_SHADER_PRESET_CGP:
|
||||||
|
@ -131,7 +131,7 @@ uint32_t msg_hash_calculate(const char *s)
|
|||||||
#define FILE_HASH_ZIP_UPP 0x0b883b78U
|
#define FILE_HASH_ZIP_UPP 0x0b883b78U
|
||||||
#define FILE_HASH_APK 0x0b885e61U
|
#define FILE_HASH_APK 0x0b885e61U
|
||||||
|
|
||||||
enum menu_file_type menu_hash_to_file_type(uint32_t hash)
|
enum menu_file_type msg_hash_to_file_type(uint32_t hash)
|
||||||
{
|
{
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
|
@ -2013,7 +2013,7 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);
|
|||||||
|
|
||||||
int menu_hash_get_help(uint32_t hash, char *s, size_t len);
|
int menu_hash_get_help(uint32_t hash, char *s, size_t len);
|
||||||
|
|
||||||
enum menu_file_type menu_hash_to_file_type(uint32_t hash);
|
enum menu_file_type msg_hash_to_file_type(uint32_t hash);
|
||||||
|
|
||||||
uint32_t msg_hash_calculate(const char *s);
|
uint32_t msg_hash_calculate(const char *s);
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ const char *retroarch_get_current_savefile_dir(void)
|
|||||||
|
|
||||||
enum rarch_content_type retroarch_path_is_media_type(const char *path)
|
enum rarch_content_type retroarch_path_is_media_type(const char *path)
|
||||||
{
|
{
|
||||||
switch (menu_hash_to_file_type(msg_hash_calculate(path_get_extension(path))))
|
switch (msg_hash_to_file_type(msg_hash_calculate(path_get_extension(path))))
|
||||||
{
|
{
|
||||||
#ifdef HAVE_FFMPEG
|
#ifdef HAVE_FFMPEG
|
||||||
case MENU_FILE_OGM:
|
case MENU_FILE_OGM:
|
||||||
|
@ -260,7 +260,7 @@ bool task_push_decompress(
|
|||||||
|
|
||||||
/* ZIP or APK only */
|
/* ZIP or APK only */
|
||||||
if (!path_file_exists(source_file) ||
|
if (!path_file_exists(source_file) ||
|
||||||
menu_hash_to_file_type(msg_hash_calculate(path_get_extension(source_file)))
|
msg_hash_to_file_type(msg_hash_calculate(path_get_extension(source_file)))
|
||||||
!= MENU_FILE_COMPRESSED)
|
!= MENU_FILE_COMPRESSED)
|
||||||
{
|
{
|
||||||
RARCH_WARN("[decompress] File '%s' does not exist or is not a compressed file.\n",
|
RARCH_WARN("[decompress] File '%s' does not exist or is not a compressed file.\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user