Skip to content

Commit

Permalink
review formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed May 16, 2023
1 parent 675efbd commit c3f049f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/rcore.c
Expand Up @@ -727,14 +727,16 @@ void android_main(struct android_app *app)
int pollEvents = 0;

// Wait for app events to close
while (!CORE.Android.app->destroyRequested) {
while ((pollResult = ALooper_pollAll(0, NULL, &pollEvents, (void**)&CORE.Android.source)) >= 0) {
while (!CORE.Android.app->destroyRequested)
{
while ((pollResult = ALooper_pollAll(0, NULL, &pollEvents, (void **)&CORE.Android.source)) >= 0)
{
if (CORE.Android.source != NULL) CORE.Android.source->process(CORE.Android.app, CORE.Android.source);
}
}

// WARNING: Check for deallocation and ensure no other processes are running from the application.
exit(0); // Closes the application completely without going through Java
// WARNING: Check for deallocation and ensure no other processes are running from the application
exit(0); // Closes the application completely without going through Java
}

// NOTE: Add this to header (if apps really need it)
Expand Down

0 comments on commit c3f049f

Please sign in to comment.