Skip to content

Commit

Permalink
Make extra sure that asserts arrive in the Android log.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 26, 2017
1 parent 280a41b commit d9695da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Common/MsgHandler.cpp
Expand Up @@ -53,7 +53,11 @@ bool MsgAlert(bool yes_no, int Style, const char* format, ...)
va_start(args, format);
CharArrayFromFormatV(buffer, sizeof(buffer)-1, format, args);
va_end(args);

// Safe android logging
#ifdef PPSSPP_PLATFORM(ANDROID)
ELOG("%s: %s", caption, buffer);
#endif
// Normal logging
ERROR_LOG(SYSTEM, "%s: %s", caption, buffer);

// Don't ignore questions, especially AskYesNo, PanicYesNo could be ignored
Expand Down

0 comments on commit d9695da

Please sign in to comment.