Re-enable verbose logging on Android

Without recompiling, there's no way to see it in logcat otherwise.
This commit is contained in:
sfan5 2023-02-23 12:07:04 +01:00 committed by SmallJoker
parent fee2e3ee27
commit 915befecc5
1 changed files with 3 additions and 2 deletions

View File

@ -46,10 +46,9 @@ void android_main(android_app *app)
Thread::setName("Main");
char *argv[] = {strdup(PROJECT_NAME), strdup("--verbose"), nullptr};
try {
char *argv[] = {strdup(PROJECT_NAME), nullptr};
main(ARRLEN(argv) - 1, argv);
free(argv[0]);
} catch (std::exception &e) {
errorstream << "Uncaught exception in main thread: " << e.what() << std::endl;
retval = -1;
@ -57,6 +56,8 @@ void android_main(android_app *app)
errorstream << "Uncaught exception in main thread!" << std::endl;
retval = -1;
}
free(argv[0]);
free(argv[1]);
porting::cleanupAndroid();
infostream << "Shutting down." << std::endl;