mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
(task_file_transfer.c) Add workaround for bogus file transfer requests
This commit is contained in:
parent
cbc79e0d67
commit
08b56582b2
@ -420,7 +420,22 @@ static int rarch_main_data_nbio_iterate_poll(nbio_handle_t *nbio)
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (str_list->size > 0)
|
if (str_list->size > 0)
|
||||||
|
{
|
||||||
|
unsigned elem0_hash = 0;
|
||||||
strlcpy(elem0, str_list->elems[0].data, sizeof(elem0));
|
strlcpy(elem0, str_list->elems[0].data, sizeof(elem0));
|
||||||
|
elem0_hash = djb2_calculate(elem0);
|
||||||
|
|
||||||
|
/* TODO/FIXME - should be able to deal with this
|
||||||
|
* in a better way. */
|
||||||
|
switch(elem0_hash)
|
||||||
|
{
|
||||||
|
case CB_MENU_WALLPAPER:
|
||||||
|
case CB_MENU_BOXART:
|
||||||
|
goto error;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (str_list->size > 1)
|
if (str_list->size > 1)
|
||||||
cb_type_hash = djb2_calculate(str_list->elems[1].data);
|
cb_type_hash = djb2_calculate(str_list->elems[1].data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user