Make rarch_main() the *real* entry point.

This commit is contained in:
Themaister 2012-10-15 21:49:35 +02:00
parent bbbdb1ccc0
commit d8d3442b29
2 changed files with 8 additions and 2 deletions

View File

@ -587,6 +587,7 @@ bool config_save_keybinds(const char *path);
void rarch_game_reset(void);
void rarch_main_clear_state(void);
int rarch_main(int argc, char *argv[]);
int rarch_main_init(int argc, char *argv[]);
bool rarch_main_iterate(void);
void rarch_main_deinit(void);

View File

@ -2725,8 +2725,7 @@ void rarch_main_deinit(void)
}
#ifndef HAVE_RARCH_MAIN_WRAP
// Consoles use the higher level API.
int main(int argc, char *argv[])
int rarch_main(int argc, char *argv[])
{
int init_ret;
if ((init_ret = rarch_main_init(argc, argv))) return init_ret;
@ -2737,4 +2736,10 @@ int main(int argc, char *argv[])
rarch_main_clear_state();
return 0;
}
// Consoles use the higher level API.
int main(int argc, char *argv[])
{
return rarch_main(argc, argv);
}
#endif