mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Don't be dependent on nbio->image inside task_file_transfer
This commit is contained in:
parent
091496f74d
commit
cb4db5c5ab
@ -83,15 +83,20 @@ void rarch_task_file_load_handler(retro_task_t *task)
|
||||
break;
|
||||
}
|
||||
|
||||
if (nbio->image)
|
||||
switch (nbio->image_type)
|
||||
{
|
||||
if (!rarch_task_image_load_handler(task))
|
||||
goto task_finished;
|
||||
case IMAGE_TYPE_PNG:
|
||||
case IMAGE_TYPE_JPEG:
|
||||
case IMAGE_TYPE_TGA:
|
||||
case IMAGE_TYPE_BMP:
|
||||
if (!rarch_task_image_load_handler(task))
|
||||
goto task_finished;
|
||||
break;
|
||||
case 0:
|
||||
if (nbio->is_finished)
|
||||
goto task_finished;
|
||||
break;
|
||||
}
|
||||
else
|
||||
if (nbio->is_finished)
|
||||
goto task_finished;
|
||||
|
||||
|
||||
if (task->cancelled)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user