Move the sleep earlier, and log it
This commit is contained in:
parent
7c4c1832cc
commit
85f0cd34db
1 changed files with 6 additions and 3 deletions
|
@ -1482,9 +1482,15 @@ __attribute__ ((visibility("default")))
|
|||
void
|
||||
android_main(struct android_app* state)
|
||||
{
|
||||
JNIEnv *env;
|
||||
struct engine engine;
|
||||
Dl_info lo_main_info;
|
||||
|
||||
if (sleep_time != 0) {
|
||||
LOGI("android_main: Sleeping for %d seconds, start ndk-gdb NOW if that is your intention", sleep_time);
|
||||
sleep(sleep_time);
|
||||
}
|
||||
|
||||
app = state;
|
||||
|
||||
memset(&engine, 0, sizeof(engine));
|
||||
|
@ -1495,9 +1501,6 @@ android_main(struct android_app* state)
|
|||
lo_main_argv[0] = lo_main_info.dli_fname;
|
||||
}
|
||||
|
||||
if (sleep_time != 0)
|
||||
sleep(sleep_time);
|
||||
|
||||
patch_libgnustl_shared();
|
||||
|
||||
extract_files(UNPACK_TREE);
|
||||
|
|
Loading…
Reference in a new issue