Remove main_entry_decide

This commit is contained in:
twinaphex 2015-01-11 17:48:21 +01:00
parent b53e8f6437
commit fae8a8d8d7
4 changed files with 3 additions and 26 deletions

View File

@ -50,18 +50,6 @@
#define MAX_ARGS 32
/**
* main_entry_decide:
*
* Runs RetroArch for one frame.
*
* Returns: 0 on success, -1 upon exiting.
**/
int main_entry_decide(signature(), args_type() args)
{
return rarch_main_iterate();
}
/**
* main_exit_save_config:
*
@ -307,7 +295,7 @@ returntype main_entry(signature())
}
#if defined(HAVE_MAIN_LOOP)
while (main_entry_decide(signature_expand(), args) != -1);
while (rarch_main_iterate() != -1);
main_exit(args);
#endif

View File

@ -75,15 +75,6 @@ bool main_load_content(int argc, char **argv,
args_type() args, environment_get_t environ_get,
process_args_t process_args);
/**
* main_entry_decide:
*
* Runs RetroArch for one frame.
*
* Returns: 0 on success, -1 upon exiting.
**/
int main_entry_decide(signature(), args_type() args);
#ifdef __cplusplus
}
#endif

View File

@ -34,7 +34,7 @@ static CFRunLoopObserverRef iterate_observer = NULL;
static void do_iteration(void)
{
int ret = main_entry_decide(0, NULL, NULL);
int ret = rarch_main_iterate();
if (ret == -1)
{

View File

@ -23,9 +23,7 @@
static void emscripten_mainloop(void)
{
int ret = main_entry_decide(0, NULL, NULL);
if (ret != -1)
if (rarch_main_iterate() != -1)
return;
main_exit(NULL);