mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Rename FS_CheckFilenameIsNotImmutable to ..IsMutable
This commit is contained in:
parent
6c88bf8aee
commit
1b2a6abed9
1 changed files with 10 additions and 10 deletions
|
@ -552,12 +552,12 @@ qboolean FS_CreatePath (char *OSPath) {
|
|||
|
||||
/*
|
||||
=================
|
||||
FS_CheckFilenameIsNotImmutable
|
||||
FS_CheckFilenameIsMutable
|
||||
|
||||
ERR_FATAL if trying to maniuplate a file with the platform library, QVM, or pk3 extension
|
||||
=================
|
||||
*/
|
||||
static void FS_CheckFilenameIsNotImmutable( const char *filename,
|
||||
static void FS_CheckFilenameIsMutable( const char *filename,
|
||||
const char *function )
|
||||
{
|
||||
// Check if the filename ends with the library, QVM, or pk3 extension
|
||||
|
@ -577,7 +577,7 @@ FS_Remove
|
|||
===========
|
||||
*/
|
||||
void FS_Remove( const char *osPath ) {
|
||||
FS_CheckFilenameIsNotImmutable( osPath, __func__ );
|
||||
FS_CheckFilenameIsMutable( osPath, __func__ );
|
||||
|
||||
remove( osPath );
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ FS_HomeRemove
|
|||
===========
|
||||
*/
|
||||
void FS_HomeRemove( const char *homePath ) {
|
||||
FS_CheckFilenameIsNotImmutable( homePath, __func__ );
|
||||
FS_CheckFilenameIsMutable( homePath, __func__ );
|
||||
|
||||
remove( FS_BuildOSPath( fs_homepath->string,
|
||||
fs_gamedir, homePath ) );
|
||||
|
@ -674,7 +674,7 @@ fileHandle_t FS_SV_FOpenFileWrite( const char *filename ) {
|
|||
Com_Printf( "FS_SV_FOpenFileWrite: %s\n", ospath );
|
||||
}
|
||||
|
||||
FS_CheckFilenameIsNotImmutable( ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( ospath, __func__ );
|
||||
|
||||
if( FS_CreatePath( ospath ) ) {
|
||||
return 0;
|
||||
|
@ -787,7 +787,7 @@ void FS_SV_Rename( const char *from, const char *to, qboolean safe ) {
|
|||
}
|
||||
|
||||
if ( safe ) {
|
||||
FS_CheckFilenameIsNotImmutable( to_ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( to_ospath, __func__ );
|
||||
}
|
||||
|
||||
rename(from_ospath, to_ospath);
|
||||
|
@ -818,7 +818,7 @@ void FS_Rename( const char *from, const char *to ) {
|
|||
Com_Printf( "FS_Rename: %s --> %s\n", from_ospath, to_ospath );
|
||||
}
|
||||
|
||||
FS_CheckFilenameIsNotImmutable( to_ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( to_ospath, __func__ );
|
||||
|
||||
rename(from_ospath, to_ospath);
|
||||
}
|
||||
|
@ -877,7 +877,7 @@ fileHandle_t FS_FOpenFileWrite( const char *filename ) {
|
|||
Com_Printf( "FS_FOpenFileWrite: %s\n", ospath );
|
||||
}
|
||||
|
||||
FS_CheckFilenameIsNotImmutable( ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( ospath, __func__ );
|
||||
|
||||
if( FS_CreatePath( ospath ) ) {
|
||||
return 0;
|
||||
|
@ -925,7 +925,7 @@ fileHandle_t FS_FOpenFileAppend( const char *filename ) {
|
|||
Com_Printf( "FS_FOpenFileAppend: %s\n", ospath );
|
||||
}
|
||||
|
||||
FS_CheckFilenameIsNotImmutable( ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( ospath, __func__ );
|
||||
|
||||
if( FS_CreatePath( ospath ) ) {
|
||||
return 0;
|
||||
|
@ -968,7 +968,7 @@ fileHandle_t FS_FCreateOpenPipeFile( const char *filename ) {
|
|||
Com_Printf( "FS_FCreateOpenPipeFile: %s\n", ospath );
|
||||
}
|
||||
|
||||
FS_CheckFilenameIsNotImmutable( ospath, __func__ );
|
||||
FS_CheckFilenameIsMutable( ospath, __func__ );
|
||||
|
||||
fifo = Sys_Mkfifo( ospath );
|
||||
if( fifo ) {
|
||||
|
|
Loading…
Reference in a new issue