MCPcopy Create free account
hub / github.com/JACoders/OpenJK / FS_CheckFilenameIsMutable

Function FS_CheckFilenameIsMutable

code/qcommon/files.cpp:527–536  ·  view source on GitHub ↗

================= FS_CheckFilenameIsMutable ERR_FATAL if trying to maniuplate a file with the platform library, or pk3 extension ================= */

Source from the content-addressed store, hash-verified

525=================
526*/
527static 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=================

Callers 11

FS_CopyFileFunction · 0.70
FS_RemoveFunction · 0.70
FS_HomeRemoveFunction · 0.70
FS_MoveUserGenFileFunction · 0.70
FS_RmdirFunction · 0.70
FS_HomeRmdirFunction · 0.70
FS_SV_FOpenFileWriteFunction · 0.70
FS_SV_RenameFunction · 0.70
FS_RenameFunction · 0.70
FS_FOpenFileWriteFunction · 0.70
FS_FOpenFileAppendFunction · 0.70

Calls 3

COM_CompareExtensionFunction · 0.70
Com_ErrorFunction · 0.70
COM_GetExtensionFunction · 0.70

Tested by

no test coverage detected