/////////////////////////////////////////////////////////////////
| 562 | |
| 563 | ////////////////////////////////////////////////////////////////////// |
| 564 | void CLog::UpdateLoadingScreenPlus(const char *szFormat,...) |
| 565 | { |
| 566 | if ((!m_pLogVerbosity) || (m_pLogVerbosity && m_pLogVerbosity->GetIVal()) || ((!m_pLogFileVerbosity) || (m_pLogFileVerbosity && m_pLogFileVerbosity->GetIVal()))) |
| 567 | { |
| 568 | RETURN; |
| 569 | if (szFormat) |
| 570 | { |
| 571 | bool bfile = false, bconsole = false; |
| 572 | CheckAgainstVerbosity(szFormat, bfile, bconsole); |
| 573 | |
| 574 | va_list args; |
| 575 | va_start(args, szFormat); |
| 576 | _vsnprintf(m_szTemp, sizeof(m_szTemp), szFormat, args); |
| 577 | m_szTemp[sizeof(m_szTemp)-8]=0; |
| 578 | va_end(args); |
| 579 | |
| 580 | if (bconsole) |
| 581 | LogToConsolePlus(m_szTemp); |
| 582 | if (bfile) |
| 583 | LogToFilePlus(m_szTemp); |
| 584 | |
| 585 | if (bconsole) |
| 586 | { |
| 587 | ((CSystem*)m_pSystem)->UpdateLoadingScreen(); |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | ////////////////////////////////////////////////////////////////////////// |
| 594 | int CLog::GetVerbosityLevel() |
no test coverage detected