diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 0417ee9350..b6c157d7af 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -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) diff --git a/msg_hash.h b/msg_hash.h index 98d28d8847..5f836ad6d6 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -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