Move the sleep earlier, and log it

This commit is contained in:
Tor Lillqvist 2012-01-26 12:42:29 +02:00
parent 7c4c1832cc
commit 85f0cd34db

View file

@ -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);