| 1321 | //========================================================================== |
| 1322 | |
| 1323 | const char *FileSystem::GetResourceFileName (int rfnum) const noexcept |
| 1324 | { |
| 1325 | const char *name, *slash; |
| 1326 | |
| 1327 | if ((uint32_t)rfnum >= Files.size()) |
| 1328 | { |
| 1329 | return NULL; |
| 1330 | } |
| 1331 | |
| 1332 | name = Files[rfnum]->GetFileName(); |
| 1333 | slash = strrchr (name, '/'); |
| 1334 | return (slash != nullptr && slash[1] != 0) ? slash+1 : name; |
| 1335 | } |
| 1336 | |
| 1337 | //========================================================================== |
| 1338 | // |
no test coverage detected