[android] Remove the main loop from main to debug things more easily

This commit is contained in:
Lucas Baudin
2016-02-25 23:12:02 +01:00
parent cb3b3a0eaf
commit 3f13d69eb3

View File

@@ -1270,10 +1270,19 @@ void askForInternetPermission()
#endif
// ----------------------------------------------------------------------------
#ifdef ANDROID
void stk_run() {
main_loop->run();
}
int stk_main()
{
CommandLine::init(0, {});
#else
int main(int argc, char *argv[] )
{
CommandLine::init(argc, argv);
#endif
CrashReporting::installHandlers();
srand(( unsigned ) time( 0 ));
@@ -1509,7 +1518,11 @@ int main(int argc, char *argv[] )
race_manager->setupPlayerKartInfo();
race_manager->startNew(false);
}
#ifdef ANDROID
return 0;
#else
main_loop->run();
#endif
} // try
catch (std::exception &e)