mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Make file::delete and file::move use QFS functions.
This commit is contained in:
parent
3aecdcf42c
commit
1f6acdb0cc
1 changed files with 2 additions and 3 deletions
|
@ -45,7 +45,6 @@ const char rcsid[] =
|
|||
#include <errno.h>
|
||||
|
||||
#include "QF/cvar.h"
|
||||
#include "QF/quakeio.h"
|
||||
#include "QF/quakefs.h"
|
||||
#include "QF/zone.h"
|
||||
#include "QF/va.h"
|
||||
|
@ -888,7 +887,7 @@ GIB_File_Move_f (void)
|
|||
}
|
||||
path1 = GIB_Argv (1);
|
||||
path2 = GIB_Argv (2);
|
||||
if (Qrename (path1, path2))
|
||||
if (QFS_Rename (path1, path2))
|
||||
GIB_Error ("file", "%s: could not move %s to %s: %s", GIB_Argv (0),
|
||||
path1, path2, strerror (errno));
|
||||
}
|
||||
|
@ -908,7 +907,7 @@ GIB_File_Delete_f (void)
|
|||
return;
|
||||
}
|
||||
path = GIB_Argv (1);
|
||||
if (Qremove (path))
|
||||
if (QFS_Remove (path))
|
||||
GIB_Error ("file", "%s: could not delete %s: %s", GIB_Argv (0), path,
|
||||
strerror (errno));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue