| 52 | */ |
| 53 | |
| 54 | void FileSystemManager::readImageCacheStatus() { |
| 55 | |
| 56 | DirectoryIterator *it; |
| 57 | |
| 58 | // preset for not-set |
| 59 | |
| 60 | _imagesAreCached=false; |
| 61 | |
| 62 | // iterate the pframe directory |
| 63 | |
| 64 | if(!_fs->getDirectoryIterator("/pframe",it)) |
| 65 | return; |
| 66 | |
| 67 | while(it->next()) { |
| 68 | |
| 69 | if(!strncasecmp("cacheloc-",it->current().getFilename(),9)) { |
| 70 | _firstCacheBlock=atoi(it->current().getFilename()+9); |
| 71 | _imagesAreCached=true; |
| 72 | break; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | delete it; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | /* |
nothing calls this directly
no test coverage detected