try this instead-fix android compile issue

This commit is contained in:
retro-wertz
2017-03-19 02:14:43 +08:00
parent 2d44c3cf13
commit ffc1a61e61
2 changed files with 8 additions and 7 deletions

View File

@@ -165,6 +165,13 @@ void FCEUD_Message(char *s)
log_cb.log(RETRO_LOG_INFO, "%s", s);
}
void FCEUD_DispMessage(char *m)
{ struct retro_message msg;
msg.msg = m;
msg.frames = 180;
environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, &msg);
}
void FCEUD_NetworkClose(void)
{ }

View File

@@ -89,13 +89,7 @@ void FCEU_DispMessage(char *format, ...)
va_end(ap);
howlong = 180;
#ifdef __LIBRETRO__
struct retro_message msg;
msg.msg = errmsg;
msg.frames = howlong;
environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, &msg);
#endif
FCEUD_DispMessage(errmsg);
}
void FCEU_ResetMessages(void)