diff options
| author | Egor <egor.yusov@gmail.com> | 2019-05-11 03:41:00 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2019-05-11 03:41:00 +0000 |
| commit | 4aa863896e656325e707e20cfe29c6401f9576d6 (patch) | |
| tree | 9d76bac7883474302cc9a1875d68e5273e098c5d /Common/NativeApp/src/Android/AndroidMain.cpp | |
| parent | Updated cmd line args for ghost cube scene in VS code launch.json (diff) | |
| download | DiligentEngine-4aa863896e656325e707e20cfe29c6401f9576d6.tar.gz DiligentEngine-4aa863896e656325e707e20cfe29c6401f9576d6.zip | |
Fixed android build; moved NDKHelper from Core module to NativeAppCommon
Diffstat (limited to 'Common/NativeApp/src/Android/AndroidMain.cpp')
| -rw-r--r-- | Common/NativeApp/src/Android/AndroidMain.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Common/NativeApp/src/Android/AndroidMain.cpp b/Common/NativeApp/src/Android/AndroidMain.cpp index 27fd90c..6e65b8a 100644 --- a/Common/NativeApp/src/Android/AndroidMain.cpp +++ b/Common/NativeApp/src/Android/AndroidMain.cpp @@ -30,6 +30,7 @@ #define HELPER_CLASS_NAME "com/android/helper/NDKHelper" //Class name of helper function +#define NATIVEACTIVITY_CLASS_NAME "android/app/NativeActivity" using namespace Diligent; @@ -38,11 +39,8 @@ using namespace Diligent; // event loop for receiving input events and doing other things. void android_main( android_app* state ) { - // Despite the deprecation warning, removing call to app_dummy causes the app to crash! - app_dummy(); - std::unique_ptr<AndroidAppBase> theApp(CreateApplication()); - theApp->SetState( state ); + theApp->SetState( state, NATIVEACTIVITY_CLASS_NAME ); //Init helper functions ndk_helper::JNIHelper::Init( state->activity, HELPER_CLASS_NAME ); |
