| 63 | } |
| 64 | |
| 65 | void 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 | |
| 80 | void ResourceManager::reloadAll() |
| 81 | { |