diff options
author | sfan5 <sfan5@live.de> | 2023-02-23 12:07:04 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2023-03-02 19:57:18 +0100 |
commit | 915befecc5dc6d48a2c0ef985eba0c6192361494 (patch) | |
tree | 7d49a9e583ac16c9ea46b2c0d32e48ccd925c313 | |
parent | fee2e3ee27a36c9a33e3cd75c676a0edc33ccac5 (diff) | |
download | minetest-915befecc5dc6d48a2c0ef985eba0c6192361494.tar.xz |
Re-enable verbose logging on Android
Without recompiling, there's no way to see it in logcat otherwise.
-rw-r--r-- | src/porting_android.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/porting_android.cpp b/src/porting_android.cpp index 83b590b99..3604684a1 100644 --- a/src/porting_android.cpp +++ b/src/porting_android.cpp @@ -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; |