forked from cory/tildefriends
Fixed apps not working most of the time. Ultimately, storing a pointer to the database using JS_NewInt64 was lossy and a bad idea. Also, remove use of JNI since we're only starting tildefriends as its own process now.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4215 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
16
src/main.c
16
src/main.c
@ -745,19 +745,3 @@ done:
|
||||
tf_mem_shutdown();
|
||||
return result;
|
||||
}
|
||||
|
||||
static void _tf_android_thread(void* user_data)
|
||||
{
|
||||
char* apk_path = user_data;
|
||||
char* args[] = { "tildefriends", "run", "-z", apk_path };
|
||||
main(_countof(args), args);
|
||||
tf_free(apk_path);
|
||||
}
|
||||
|
||||
void tf_android(const char* apk_path)
|
||||
{
|
||||
uv_thread_t thread_id = 0;
|
||||
tf_printf("Starting a thread.\n");
|
||||
uv_thread_create(&thread_id, _tf_android_thread, tf_strdup(apk_path));
|
||||
tf_printf("Post-thread start.\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user