diff options
author | sapier <Sapier at GMX dot net> | 2015-01-06 16:01:49 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2015-01-06 16:13:39 +0100 |
commit | 083d19b3fc8f60468e124c801296c13b66c41abc (patch) | |
tree | c1e2a9fd7e54dad102da6a8aada8d3b1a476fbbd /src/log.cpp | |
parent | ef0a4e361440430e9512c7adc278c36956275a5c (diff) | |
download | hax-minetest-server-083d19b3fc8f60468e124c801296c13b66c41abc.tar.gz hax-minetest-server-083d19b3fc8f60468e124c801296c13b66c41abc.zip |
Fixes for android
Copy only minetest_game to apk by default
Don't copy .git and .svn folders to apk
Fix bouncing asset copy scrollbar due to long filepaths
Reenable font scaling to fix broken menu on high dpi screens
Implement minetest loglevel to android loglevel mapping
Disable touch digging while moving around
Diffstat (limited to 'src/log.cpp')
-rw-r--r-- | src/log.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/log.cpp b/src/log.cpp index 8ed1f7694..b3b3f3f1b 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -29,6 +29,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "porting.h" #include "config.h" +#ifdef __ANDROID__ +unsigned int android_log_level_mapping[] { + /* LMT_ERROR */ ANDROID_LOG_ERROR, + /* LMT_ACTION */ ANDROID_LOG_WARN, + /* LMT_INFO */ ANDROID_LOG_INFO, + /* LMT_VERBOSE */ ANDROID_LOG_VERBOSE + }; +#endif + std::list<ILogOutput*> log_outputs[LMT_NUM_VALUES]; std::map<threadid_t, std::string> log_threadnames; JMutex log_threadnamemutex; @@ -160,7 +169,7 @@ public: { log_printline(m_lev, m_buf); #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_ERROR, PROJECT_NAME, "%s", m_buf.c_str()); + __android_log_print(android_log_level_mapping[m_lev], PROJECT_NAME, "%s", m_buf.c_str()); #endif } |