mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
(Console) rarch_startup returns bool value now - indicating
ROM loading error/success
This commit is contained in:
parent
c440c7a50a
commit
c0f10f41ed
@ -601,8 +601,10 @@ RARCH_WARN("Shader support is not implemented for this build.\n");
|
||||
|
||||
#ifdef HAVE_RARCH_MAIN_WRAP
|
||||
|
||||
void rarch_startup (const char * config_path)
|
||||
bool rarch_startup (const char * config_path)
|
||||
{
|
||||
bool retval = false;
|
||||
|
||||
if(g_console.initialize_rarch_enable)
|
||||
{
|
||||
if(g_console.emulator_initialized)
|
||||
@ -623,6 +625,7 @@ void rarch_startup (const char * config_path)
|
||||
{
|
||||
g_console.emulator_initialized = 1;
|
||||
g_console.initialize_rarch_enable = 0;
|
||||
retval = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -632,6 +635,8 @@ void rarch_startup (const char * config_path)
|
||||
rarch_settings_msg(S_MSG_ROM_LOADING_ERROR, S_DELAY_180);
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
int rarch_main_init_wrap(const struct rarch_main_wrap *args)
|
||||
|
@ -207,7 +207,7 @@ struct rarch_main_wrap
|
||||
};
|
||||
|
||||
int rarch_main_init_wrap(const struct rarch_main_wrap *args);
|
||||
void rarch_startup (const char * config_path);
|
||||
bool rarch_startup (const char * config_path);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RARCH_EXEC
|
||||
|
Loading…
x
Reference in New Issue
Block a user