| 194 | } |
| 195 | |
| 196 | void FileCache::FlushBank(QFBank* bank) |
| 197 | { |
| 198 | // release all files from this bank |
| 199 | |
| 200 | for (int i = 0; i < _cache.Size(); i++) |
| 201 | { |
| 202 | const FileInCache* file = _cache[i]; |
| 203 | const QIFStreamB& stream = file->_data; |
| 204 | if (!stream.IsFromBank(bank)) |
| 205 | { |
| 206 | continue; |
| 207 | } |
| 208 | _cache.Delete(i); |
| 209 | i--; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | DEFINE_FAST_ALLOCATOR(FileInCache) |
| 214 |
no test coverage detected