Return 'ret' at end of load_content instead of hardcoded 'true'

This commit is contained in:
twinaphex 2016-01-27 02:40:11 +01:00
parent 34876ef432
commit d1ac905248
2 changed files with 5 additions and 2 deletions

View File

@ -1266,7 +1266,9 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
}
case EVENT_CMD_CORE_INIT:
if (!event_init_core())
{
return false;
}
break;
case EVENT_CMD_VIDEO_APPLY_STATE_CHANGES:
video_driver_ctl(RARCH_DISPLAY_CTL_APPLY_STATE_CHANGES, NULL);

View File

@ -541,7 +541,7 @@ static bool load_content(
if (!ret)
RARCH_ERR("%s.\n", msg_hash_to_str(MSG_FAILED_TO_LOAD_CONTENT));
return true;
return ret;
}
static bool init_content_file_subsystem(
@ -827,7 +827,8 @@ bool content_ctl(enum content_ctl_state state, void *data)
content_is_inited = true;
return true;
}
/* fall-through */
content_ctl(CONTENT_CTL_DEINIT, NULL);
return false;
case CONTENT_CTL_TEMPORARY_FREE:
if (!temporary_content)
return false;