always log popup message to log even when set to hidden

This commit is contained in:
RadWolfie 2020-06-10 22:33:30 -05:00
parent 77d469ddb5
commit 458b332e8e
1 changed files with 8 additions and 1 deletions

View File

@ -148,6 +148,13 @@ void EmuLogOutput(CXBXR_MODULE cxbxr_module, LOG_LEVEL level, const char *szWarn
fflush(stdout);
}
static inline void EmuLogOutputEx(CXBXR_MODULE cxbxr_module, LOG_LEVEL level, const char *szWarningMessage, ...)
{
va_list argp;
va_start(argp, szWarningMessage);
EmuLogOutput(cxbxr_module, level, szWarningMessage, argp);
va_end(argp);
}
// print out a custom message to the console or kernel debug log file
void NTAPI EmuLogEx(CXBXR_MODULE cxbxr_module, LOG_LEVEL level, const char *szWarningMessage, ...)
@ -286,7 +293,7 @@ void CxbxPopupMessageEx(CXBXR_MODULE cxbxr_module, LOG_LEVEL level, CxbxMsgDlgIc
vsprintf(Buffer, message, argp);
va_end(argp);
EmuLogEx(cxbxr_module, level, "Popup : %s", Buffer);
EmuLogOutputEx(cxbxr_module, level, "Popup : %s", Buffer);
(void)CxbxMessageBox(Buffer, uType);
}