mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Small cleanups to task_content.c
This commit is contained in:
parent
2e50b57643
commit
24389bbcd5
@ -330,7 +330,6 @@ static void content_file_set_info_path(
|
|||||||
bool path_is_inside_archive;
|
bool path_is_inside_archive;
|
||||||
|
|
||||||
content_info->path = NULL;
|
content_info->path = NULL;
|
||||||
*path_is_compressed = false;
|
|
||||||
|
|
||||||
if (string_is_empty(content_path))
|
if (string_is_empty(content_path))
|
||||||
return;
|
return;
|
||||||
@ -907,6 +906,7 @@ static bool content_load(content_ctx_info_t *info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_GFX_WIDGETS
|
#ifdef HAVE_GFX_WIDGETS
|
||||||
|
#ifdef HAVE_CONFIGFILE
|
||||||
/* If retroarch_main_init() returned true, we
|
/* If retroarch_main_init() returned true, we
|
||||||
* can safely trigger a load content animation */
|
* can safely trigger a load content animation */
|
||||||
if (gfx_widgets_ready())
|
if (gfx_widgets_ready())
|
||||||
@ -914,17 +914,13 @@ static bool content_load(content_ctx_info_t *info,
|
|||||||
/* Note: Have to read settings value here
|
/* Note: Have to read settings value here
|
||||||
* (It will be invalid if we try to read
|
* (It will be invalid if we try to read
|
||||||
* it earlier...) */
|
* it earlier...) */
|
||||||
#ifdef HAVE_CONFIGFILE
|
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
bool show_load_content_animation = settings && settings->bools.menu_show_load_content_animation;
|
bool show_load_content_animation = settings && settings->bools.menu_show_load_content_animation;
|
||||||
#else
|
|
||||||
bool show_load_content_animation = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (show_load_content_animation)
|
if (show_load_content_animation)
|
||||||
gfx_widget_start_load_content_animation();
|
gfx_widget_start_load_content_animation();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||||
menu_shader_manager_init();
|
menu_shader_manager_init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user