mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
Remove main_entry_decide
This commit is contained in:
parent
b53e8f6437
commit
fae8a8d8d7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user