Rename menu_hash_to_file_type

This commit is contained in:
twinaphex 2016-06-20 15:33:22 +02:00
parent e59fb6c0d9
commit 450e1f4746
8 changed files with 8 additions and 12 deletions

View File

@ -549,9 +549,7 @@ static void mui_render_label_value(mui_handle_t *mui,
}
else
{
enum menu_file_type entry_type = menu_hash_to_file_type(msg_hash_calculate(value));
switch (entry_type)
switch (msg_hash_to_file_type(msg_hash_calculate(value)))
{
case MENU_FILE_COMPRESSED:
case MENU_FILE_MORE:

View File

@ -1698,9 +1698,7 @@ static void xmb_draw_items(xmb_handle_t *xmb,
}
else
{
enum menu_file_type entry_type = menu_hash_to_file_type(msg_hash_calculate(entry.value));
switch (entry_type)
switch (msg_hash_to_file_type(msg_hash_calculate(entry.value)))
{
case MENU_FILE_COMPRESSED:
case MENU_FILE_MORE:

View File

@ -1789,7 +1789,7 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
if (tmp_str_list->size > 1)
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:
if (string_is_equal(crc_str, elem0))

View File

@ -84,7 +84,7 @@ void menu_shader_manager_init(menu_handle_t *menu)
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_CGP:

View File

@ -131,7 +131,7 @@ uint32_t msg_hash_calculate(const char *s)
#define FILE_HASH_ZIP_UPP 0x0b883b78U
#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)
{

View File

@ -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);
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);

View File

@ -566,7 +566,7 @@ const char *retroarch_get_current_savefile_dir(void)
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
case MENU_FILE_OGM:

View File

@ -260,7 +260,7 @@ bool task_push_decompress(
/* ZIP or APK only */
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)
{
RARCH_WARN("[decompress] File '%s' does not exist or is not a compressed file.\n",