diff --git a/content.c b/content.c index 71ff80c124..32fdaa1a6f 100644 --- a/content.c +++ b/content.c @@ -857,7 +857,7 @@ static void content_load_init_wrap( * * Returns: false (0) if rarch_main_init failed, otherwise true (1). **/ -static bool content_load(content_ctx_info_t *info) +bool content_load(content_ctx_info_t *info) { unsigned i; bool retval = true; @@ -1761,8 +1761,6 @@ bool content_ctl(enum content_ctl_state state, void *data) #endif } break; - case CONTENT_CTL_LOAD: - return content_load((content_ctx_info_t*)data); case CONTENT_CTL_NONE: default: break; diff --git a/content.h b/content.h index 8765df2a50..836fdbb3d7 100644 --- a/content.h +++ b/content.h @@ -48,10 +48,6 @@ enum content_ctl_state CONTENT_CTL_DEINIT, - /* Loads content file and starts up RetroArch. - * If no content file can be loaded, will start up RetroArch - * as-is. */ - CONTENT_CTL_LOAD, CONTENT_CTL_GET_CRC, @@ -103,6 +99,11 @@ bool content_load_state(const char *path); /* Save a state from memory to disk. */ bool content_save_state(const char *path); +/* Loads content file and starts up RetroArch. + * If no content file can be loaded, will start up RetroArch + * as-is. */ +bool content_load(content_ctx_info_t *info); + bool content_ctl(enum content_ctl_state state, void *data); #ifdef __cplusplus diff --git a/frontend/frontend.c b/frontend/frontend.c index c338efc628..cb68e911b6 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -126,7 +126,7 @@ int rarch_main(int argc, char *argv[], void *data) info.args = args; info.environ_get = frontend_driver_environment_get_ptr(); - if (!content_ctl(CONTENT_CTL_LOAD, &info)) + if (!content_load(&info)) return 0; } diff --git a/menu/menu_content.c b/menu/menu_content.c index 44c28e1d5a..422696a706 100644 --- a/menu/menu_content.c +++ b/menu/menu_content.c @@ -105,7 +105,7 @@ static bool menu_content_load(void) content_info.args = NULL; content_info.environ_get = menu_content_environment_get; - if (!content_ctl(CONTENT_CTL_LOAD, &content_info)) + if (!content_load(&content_info)) goto error; if (*fullpath)