MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / unloadAll

Method unloadAll

src/resources/ResourceManager.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void ResourceManager::unloadAll()
66{
67 auto iter = mReloadables.begin();
68 while(iter != mReloadables.end())
69 {
70 if(!iter->expired())
71 {
72 iter->lock()->unload(*this);
73 iter++;
74 }else{
75 mReloadables.erase(iter++);
76 }
77 }
78}
79
80void ResourceManager::reloadAll()
81{

Callers 1

deinitMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
unloadMethod · 0.45

Tested by

no test coverage detected