Get rid of unnecessary function main_entry_iterate_shutdown

This commit is contained in:
twinaphex 2014-09-24 08:33:43 +02:00
parent ff4e0928f4
commit 7b49e072ff
1 changed files with 11 additions and 18 deletions

View File

@ -55,11 +55,10 @@
#define MAX_ARGS 32 #define MAX_ARGS 32
static int main_entry_iterate_shutdown(signature(), int main_entry_decide(signature(), args_type() args)
args_type() args)
{ {
(void)args; if (!rarch_main_iterate())
{
if (g_extern.core_shutdown_initiated if (g_extern.core_shutdown_initiated
&& g_settings.load_dummy_on_core_shutdown) && g_settings.load_dummy_on_core_shutdown)
{ {
@ -68,14 +67,8 @@ static int main_entry_iterate_shutdown(signature(),
g_extern.core_shutdown_initiated = false; g_extern.core_shutdown_initiated = false;
return 0; return 0;
} }
return 1; return 1;
} }
int main_entry_decide(signature(), args_type() args)
{
if (!rarch_main_iterate())
return main_entry_iterate_shutdown(signature_expand(), args);
if (driver.frontend_ctx && driver.frontend_ctx->process_events) if (driver.frontend_ctx && driver.frontend_ctx->process_events)
driver.frontend_ctx->process_events(args); driver.frontend_ctx->process_events(args);