mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(overlays) If image could be found, set loading status to 'BUSY', otherwise,
set to 'DONE'
This commit is contained in:
parent
ea3d55582a
commit
a8ccb02b52
@ -362,9 +362,8 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol,
|
|||||||
}
|
}
|
||||||
|
|
||||||
overlay->image = img;
|
overlay->image = img;
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (conf)
|
if (conf)
|
||||||
@ -610,11 +609,10 @@ bool input_overlay_load_overlays_iterate(input_overlay_t *ol)
|
|||||||
switch (ol->loading_status)
|
switch (ol->loading_status)
|
||||||
{
|
{
|
||||||
case OVERLAY_IMAGE_TRANSFER_NONE:
|
case OVERLAY_IMAGE_TRANSFER_NONE:
|
||||||
if (input_overlay_load_overlay_image(ol,
|
if (!input_overlay_load_overlay_image(ol,
|
||||||
ol->overlay_path, &ol->overlays[ol->pos], ol->pos))
|
ol->overlay_path, &ol->overlays[ol->pos], ol->pos))
|
||||||
{
|
ol->loading_status = OVERLAY_IMAGE_TRANSFER_DONE;
|
||||||
ol->loading_status = OVERLAY_IMAGE_TRANSFER_BUSY;
|
ol->loading_status = OVERLAY_IMAGE_TRANSFER_BUSY;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case OVERLAY_IMAGE_TRANSFER_BUSY:
|
case OVERLAY_IMAGE_TRANSFER_BUSY:
|
||||||
ol->loading_status = OVERLAY_IMAGE_TRANSFER_DONE;
|
ol->loading_status = OVERLAY_IMAGE_TRANSFER_DONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user