MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / UpdateLoadingScreenPlus

Method UpdateLoadingScreenPlus

CrySystem/Log.cpp:564–591  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

562
563//////////////////////////////////////////////////////////////////////
564void 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//////////////////////////////////////////////////////////////////////////
594int CLog::GetVerbosityLevel()

Callers 3

loadAnimationsMethod · 0.45
indicateProgressMethod · 0.45
LoadPostInitializeMethod · 0.45

Calls 2

GetIValMethod · 0.80
UpdateLoadingScreenMethod · 0.45

Tested by

no test coverage detected