diff --git a/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c b/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c index 09a4b22..56e3a44 100644 --- a/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c +++ b/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c @@ -233,7 +233,7 @@ static void* android_app_entry(void* param) { pthread_cond_broadcast(&android_app->cond); pthread_mutex_unlock(&android_app->mutex); - android_main(android_app); + _rust_glue_entry(android_app); android_app_destroy(android_app); return NULL; diff --git a/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.h b/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.h index e63026f..f504ac4 100644 --- a/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.h +++ b/android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.h @@ -448,10 +448,10 @@ void android_app_clear_motion_events(struct android_input_buffer* inputBuffer); void android_app_clear_key_events(struct android_input_buffer* inputBuffer); /** - * This is the function that application code must implement, representing - * the main entry to the app. + * This is a springboard into the Rust glue layer that wraps calling the + * main entry for the app itself. */ -extern void android_main(struct android_app* app); +extern void _rust_glue_entry(struct android_app* app); /** * Set the filter to use when processing key events.