MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ForceFinish

Method ForceFinish

ogsr_engine/xrGame/ui/UILoadingScreen.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void UILoadingScreen::ForceFinish()
82{
83 std::scoped_lock<decltype(loadingLock)> lock(loadingLock);
84
85 const float prev = loadingProgress->m_inertion;
86 const float maximal = loadingProgress->GetRange_max();
87
88 loadingProgress->m_inertion = 0.0f;
89 loadingProgress->SetProgressPos(maximal);
90
91 for (int i = 0; i < int(maximal); ++i)
92 {
93 loadingProgress->Update();
94 }
95
96 loadingProgress->m_inertion = prev;
97}
98
99void UILoadingScreen::SetLevelLogo(const char* name)
100{

Callers 1

LoadForceFinishMethod · 0.80

Calls 2

SetProgressPosMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected