mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
(Overlay) Cleanups
This commit is contained in:
parent
a5832f4fb1
commit
c67ab04e2b
@ -337,6 +337,7 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol,
|
||||
{
|
||||
char overlay_path_key[64];
|
||||
char overlay_path[PATH_MAX_LENGTH];
|
||||
bool ret = false;
|
||||
config_file_t *conf = config_file_new(ol->overlay_path);
|
||||
|
||||
if (!conf)
|
||||
@ -363,13 +364,14 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol,
|
||||
}
|
||||
|
||||
overlay->image = img;
|
||||
return true;
|
||||
|
||||
ret = true;
|
||||
}
|
||||
|
||||
error:
|
||||
if (conf)
|
||||
config_file_free(conf);
|
||||
return false;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool input_overlay_load_overlay(input_overlay_t *ol,
|
||||
|
Loading…
x
Reference in New Issue
Block a user