mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
COMMON: Add kInfo LogMessageType.
This commit is contained in:
parent
a809ac9b7e
commit
6842227ac2
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -73,6 +73,7 @@ struct TimeDate {
|
||||
namespace LogMessageType {
|
||||
|
||||
enum Type {
|
||||
kInfo,
|
||||
kError,
|
||||
kWarning,
|
||||
kDebug
|
||||
|
Loading…
Reference in New Issue
Block a user