mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Re-enable verbose logging on Android
Without recompiling, there's no way to see it in logcat otherwise.
This commit is contained in:
parent
fee2e3ee27
commit
915befecc5
@ -46,10 +46,9 @@ void android_main(android_app *app)
|
|||||||
|
|
||||||
Thread::setName("Main");
|
Thread::setName("Main");
|
||||||
|
|
||||||
|
char *argv[] = {strdup(PROJECT_NAME), strdup("--verbose"), nullptr};
|
||||||
try {
|
try {
|
||||||
char *argv[] = {strdup(PROJECT_NAME), nullptr};
|
|
||||||
main(ARRLEN(argv) - 1, argv);
|
main(ARRLEN(argv) - 1, argv);
|
||||||
free(argv[0]);
|
|
||||||
} catch (std::exception &e) {
|
} catch (std::exception &e) {
|
||||||
errorstream << "Uncaught exception in main thread: " << e.what() << std::endl;
|
errorstream << "Uncaught exception in main thread: " << e.what() << std::endl;
|
||||||
retval = -1;
|
retval = -1;
|
||||||
@ -57,6 +56,8 @@ void android_main(android_app *app)
|
|||||||
errorstream << "Uncaught exception in main thread!" << std::endl;
|
errorstream << "Uncaught exception in main thread!" << std::endl;
|
||||||
retval = -1;
|
retval = -1;
|
||||||
}
|
}
|
||||||
|
free(argv[0]);
|
||||||
|
free(argv[1]);
|
||||||
|
|
||||||
porting::cleanupAndroid();
|
porting::cleanupAndroid();
|
||||||
infostream << "Shutting down." << std::endl;
|
infostream << "Shutting down." << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user