1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Get rid of hash

This commit is contained in:
twinaphex 2020-05-10 05:05:43 +02:00
parent 2f3ef75bf6
commit 1e9b94ded4
2 changed files with 6 additions and 7 deletions

View File

@ -4028,11 +4028,11 @@ static void cb_decompressed(retro_task_t *task,
if (dec && !err)
{
unsigned type_hash = (unsigned)(uintptr_t)user_data;
unsigned enum_idx = (unsigned)(uintptr_t)user_data;
switch (type_hash)
switch (enum_idx)
{
case CB_UPDATE_ASSETS:
case MENU_ENUM_LABEL_CB_UPDATE_ASSETS:
generic_action_ok_command(CMD_EVENT_REINIT);
break;
default:
@ -4346,8 +4346,8 @@ void cb_generic_download(retro_task_t *task,
decompress_task = (retro_task_t*)task_push_decompress(
output_path, dir_path,
NULL, NULL, NULL,
cb_decompressed, (void*)(uintptr_t)
msg_hash_calculate(msg_hash_to_str(transf->enum_idx)),
cb_decompressed,
(void*)(uintptr_t)transf->enum_idx,
frontend_userdata, false);
if (!decompress_task)

View File

@ -2809,8 +2809,7 @@ enum msg_hash_enums
};
/* Callback strings */
/* TODO/FIXME - get rid of these two */
#define CB_UPDATE_ASSETS 0xbf85795eU
/* TODO/FIXME - get rid of this */
#define MENU_LABEL_SCREEN_RESOLUTION 0x5c9b3a58U