/////////////////////////////////////////////////////////////////
| 528 | |
| 529 | ////////////////////////////////////////////////////////////////////// |
| 530 | void CLog::UpdateLoadingScreen(const char *szFormat,...) |
| 531 | { |
| 532 | if ((!m_pLogVerbosity) || (m_pLogVerbosity && m_pLogVerbosity->GetIVal()) || ((!m_pLogFileVerbosity) || (m_pLogFileVerbosity && m_pLogFileVerbosity->GetIVal()))) |
| 533 | { |
| 534 | RETURN; |
| 535 | if (szFormat) |
| 536 | { |
| 537 | bool bfile = false, bconsole = false; |
| 538 | CheckAgainstVerbosity(szFormat, bfile, bconsole); |
| 539 | |
| 540 | if (bconsole || bfile) |
| 541 | { |
| 542 | va_list args; |
| 543 | va_start(args, szFormat); |
| 544 | _vsnprintf(m_szTemp, sizeof(m_szTemp), szFormat, args); |
| 545 | m_szTemp[sizeof(m_szTemp)-8]=0; |
| 546 | va_end(args); |
| 547 | |
| 548 | if (bconsole) |
| 549 | LogToConsole(m_szTemp); |
| 550 | if (bfile) |
| 551 | LogToFile(m_szTemp); |
| 552 | if (bconsole) |
| 553 | { |
| 554 | ((CSystem*)m_pSystem)->UpdateLoadingScreen(); |
| 555 | } |
| 556 | } |
| 557 | } |
| 558 | } |
| 559 | // Take this oportunity to update streaming engine. |
| 560 | GetISystem()->GetStreamEngine()->Update(); |
| 561 | } |
| 562 | |
| 563 | ////////////////////////////////////////////////////////////////////// |
| 564 | void CLog::UpdateLoadingScreenPlus(const char *szFormat,...) |
no test coverage detected