COMMON: Add kInfo LogMessageType.

This commit is contained in:
Alyssa Milburn 2011-06-06 12:26:01 +02:00
parent a809ac9b7e
commit 6842227ac2
3 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -73,6 +73,7 @@ struct TimeDate {
namespace LogMessageType {
enum Type {
kInfo,
kError,
kWarning,
kDebug