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

Method UpdateLoadingScreen

CrySystem/Log.cpp:530–561  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

528
529//////////////////////////////////////////////////////////////////////
530void 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//////////////////////////////////////////////////////////////////////
564void CLog::UpdateLoadingScreenPlus(const char *szFormat,...)

Callers 9

ReadNodesMethod · 0.45
loadNewMethod · 0.45
loadAnimationsMethod · 0.45
loadTexturesMethod · 0.45
TickProgressBarMethod · 0.45
LoadLevelCSMethod · 0.45
GetMissionMethod · 0.45
LoadLevelCommonMethod · 0.45

Calls 4

GetIValMethod · 0.80
GetStreamEngineMethod · 0.80
GetISystemFunction · 0.70
UpdateMethod · 0.45

Tested by

no test coverage detected