aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/android/android.cpp4
-rw-r--r--common/system.cpp2
-rw-r--r--common/system.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 5ae0239bab..bb20184009 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -575,6 +575,10 @@ void OSystem_Android::addSysArchivesToSearchSet(Common::SearchSet &s,
void OSystem_Android::logMessage(LogMessageType::Type type,
const char *message) {
switch (type) {
+ case LogMessageType::kInfo:
+ __android_log_write(ANDROID_LOG_INFO, android_log_tag, message);
+ break;
+
case LogMessageType::kDebug:
__android_log_write(ANDROID_LOG_DEBUG, android_log_tag, message);
break;
diff --git a/common/system.cpp b/common/system.cpp
index 1f2f8cc6d5..34fc076492 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -79,7 +79,7 @@ void OSystem::fatalError() {
void OSystem::logMessage(LogMessageType::Type type, const char *message) {
FILE *output = 0;
- if (type == LogMessageType::kDebug)
+ if (type == LogMessageType::kInfo || type == LogMessageType::kDebug)
output = stdout;
else
output = stderr;
diff --git a/common/system.h b/common/system.h
index b7fc870af7..243343ce0d 100644
--- a/common/system.h
+++ b/common/system.h
@@ -73,6 +73,7 @@ struct TimeDate {
namespace LogMessageType {
enum Type {
+ kInfo,
kError,
kWarning,
kDebug