| 109 | |
| 110 | template<typename AppT> |
| 111 | void AppAndroid::deferredMain( const RendererRef &defaultRenderer, const char *title, android_app *nativeApp, const SettingsFn &settingsFn ) |
| 112 | { |
| 113 | AppBase::prepareLaunch(); |
| 114 | |
| 115 | Settings settings; |
| 116 | AppAndroid::initialize( &settings, defaultRenderer, title ); |
| 117 | |
| 118 | if( settingsFn ) |
| 119 | settingsFn( &settings ); |
| 120 | |
| 121 | if( settings.getShouldQuit() ) |
| 122 | return; |
| 123 | |
| 124 | ci::android::dbg_app_log( "Allocating AppAndroid" ); |
| 125 | ci::android::dbg_app_log( "Calling AppBase::executeLaunch" ); |
| 126 | // |
| 127 | // Use AppAndroid instead of AppBase like the other platforms so |
| 128 | // dereferred main can call the protected method: AppBase::executeLaunch() |
| 129 | // |
| 130 | AppAndroid *app = new AppT; |
| 131 | app->executeLaunch(); |
| 132 | |
| 133 | // |
| 134 | // NOTE: AppBase::cleanupLaunch is called in EventManagerAndroid::execute. |
| 135 | // |
| 136 | // DISABLED HERE: AppBase::cleanupLaunch(); |
| 137 | // |
| 138 | } |
| 139 | |
| 140 | template<typename AppT> |
| 141 | void AppAndroid::main( const RendererRef &defaultRenderer, const char *title, android_app *nativeApp, const SettingsFn &settingsFn ) |
nothing calls this directly
no test coverage detected