mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-24 18:36:31 +00:00
Add content_is_init - set to true if content file has been loaded
into memory, set to false when it has failed in doing so
This commit is contained in:
parent
e75d94fd65
commit
064f23b354
@ -134,8 +134,12 @@ static ssize_t read_content_file(const char *path, void **buf)
|
||||
{
|
||||
uint8_t *ret_buf = NULL;
|
||||
ssize_t ret = -1;
|
||||
|
||||
RARCH_LOG("Loading content file: %s.\n", path);
|
||||
ret = read_file(path, (void**) &ret_buf);
|
||||
|
||||
g_extern.content_is_init = (ret <= 0) ? false : true;
|
||||
|
||||
if (ret <= 0)
|
||||
return ret;
|
||||
|
||||
@ -371,7 +375,6 @@ static bool load_content(const struct retro_subsystem_info *special,
|
||||
if (!need_fullpath && *path)
|
||||
{
|
||||
/* Load the content into memory. */
|
||||
RARCH_LOG("Loading content file: %s.\n", path);
|
||||
|
||||
/* First content file is significant, attempt to do patching,
|
||||
* CRC checking, etc. */
|
||||
|
@ -254,9 +254,8 @@ returntype main_entry(signature())
|
||||
|
||||
if (g_settings.history_list_enable)
|
||||
{
|
||||
#if defined(RARCH_CONSOLE) || defined(RARCH_MOBILE)
|
||||
if (ret)
|
||||
#endif
|
||||
/* TODO - need to also check for SET_SUPPORT_NO_GAME here. */
|
||||
if (g_extern.content_is_init)
|
||||
history_playlist_push(g_defaults.history,
|
||||
g_extern.fullpath,
|
||||
g_settings.libretro,
|
||||
|
Loading…
x
Reference in New Issue
Block a user