MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / BeginLoading

Method BeginLoading

Sources/Jazz2/ContentResolver.cpp:371–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369 }
370
371 void ContentResolver::BeginLoading()
372 {
373 _isLoading = true;
374
375 // Reset Referenced flag
376 for (auto& resource : _cachedMetadata) {
377 resource.second->Flags &= ~MetadataFlags::Referenced;
378 }
379 for (auto& resource : _cachedGraphics) {
380 resource.second->Flags &= ~GenericGraphicResourceFlags::Referenced;
381 }
382#if defined(WITH_AUDIO)
383 for (auto& resource : _cachedSounds) {
384 resource.second->Flags &= ~GenericSoundResourceFlags::Referenced;
385 }
386#endif
387 }
388
389 void ContentResolver::EndLoading()
390 {

Callers 2

InitializeMethod · 0.80
MainMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected