| 1066 | } // namespace crown |
| 1067 | |
| 1068 | void android_main(struct android_app *app) |
| 1069 | { |
| 1070 | using namespace crown; |
| 1071 | |
| 1072 | memory_globals::init(); |
| 1073 | profiler_globals::init(); |
| 1074 | guid_globals::init(); |
| 1075 | |
| 1076 | DeviceOptions opts(default_allocator(), 0, NULL); |
| 1077 | g_platform_data._android_asset_manager = app->activity->assetManager; |
| 1078 | g_platform_data._android_internal_data_path = (void *)app->activity->internalDataPath; |
| 1079 | g_platform_data._android_obb_path = (void *)app->activity->obbPath; |
| 1080 | |
| 1081 | s_android_device = CE_NEW(default_allocator(), AndroidDevice)(default_allocator()); |
| 1082 | s_android_device->run(app, opts); |
| 1083 | CE_DELETE(default_allocator(), s_android_device); |
| 1084 | |
| 1085 | guid_globals::shutdown(); |
| 1086 | profiler_globals::shutdown(); |
| 1087 | memory_globals::shutdown(); |
| 1088 | } |
| 1089 | |
| 1090 | #endif // if CROWN_PLATFORM_ANDROID |
no test coverage detected