| 1267 | |
| 1268 | |
| 1269 | FileReader FileSystem::OpenFileReader(int lump, int readertype, int readerflags) |
| 1270 | { |
| 1271 | if ((unsigned)lump >= (unsigned)FileInfo.size()) |
| 1272 | { |
| 1273 | throw FileSystemException("OpenFileReader: %u >= NumEntries", lump); |
| 1274 | } |
| 1275 | |
| 1276 | auto file = FileInfo[lump].resfile; |
| 1277 | return file->GetEntryReader(FileInfo[lump].resindex, readertype, readerflags); |
| 1278 | } |
| 1279 | |
| 1280 | FileReader FileSystem::OpenFileReader(const char* name) |
| 1281 | { |
no test coverage detected