================= FS_CheckFilenameIsMutable ERR_FATAL if trying to maniuplate a file with the platform library, or pk3 extension ================= */
| 525 | ================= |
| 526 | */ |
| 527 | static void FS_CheckFilenameIsMutable( const char *filename, const char *function ) |
| 528 | { |
| 529 | // Check if the filename ends with the library, or pk3 extension |
| 530 | if( COM_CompareExtension( filename, DLL_EXT ) |
| 531 | || COM_CompareExtension( filename, ".pk3" ) ) |
| 532 | { |
| 533 | Com_Error( ERR_FATAL, "%s: Not allowed to manipulate '%s' due " |
| 534 | "to %s extension", function, filename, COM_GetExtension( filename ) ); |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | /* |
| 539 | ================= |
no test coverage detected