refactor: remove SDL_main
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
#include "window/Display.h"
|
||||
#include "misc/Random.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
extern "C"
|
||||
#endif
|
||||
|
||||
int main(int argc, const char* args[]) {
|
||||
td::utils::initRandomizer();
|
||||
Display::create();
|
||||
@@ -19,12 +23,4 @@ int main(int argc, const char* args[]) {
|
||||
}
|
||||
Display::destroy();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
extern "C" {
|
||||
int SDL_main(int argc, const char* args[]) {
|
||||
return main(argc, args);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user