| 316 | } |
| 317 | |
| 318 | void RemoveDynamicResourceHash(HCollection hcollection, dmhash_t resource_hash) |
| 319 | { |
| 320 | Collection* collection = hcollection->m_Collection; |
| 321 | dmMutex::Lock(collection->m_Mutex); |
| 322 | for (int i = 0; i < collection->m_DynamicResources.Size(); ++i) |
| 323 | { |
| 324 | if (collection->m_DynamicResources[i] == resource_hash) |
| 325 | { |
| 326 | collection->m_DynamicResources.EraseSwap(i); |
| 327 | } |
| 328 | } |
| 329 | dmMutex::Unlock(collection->m_Mutex); |
| 330 | } |
| 331 | |
| 332 | static void ReleaseDynamicResources(Collection* collection) |
| 333 | { |
no test coverage detected