mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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 <errno.h>
|
||||||
|
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
#include "QF/quakeio.h"
|
|
||||||
#include "QF/quakefs.h"
|
#include "QF/quakefs.h"
|
||||||
#include "QF/zone.h"
|
#include "QF/zone.h"
|
||||||
#include "QF/va.h"
|
#include "QF/va.h"
|
||||||
|
@ -888,7 +887,7 @@ GIB_File_Move_f (void)
|
||||||
}
|
}
|
||||||
path1 = GIB_Argv (1);
|
path1 = GIB_Argv (1);
|
||||||
path2 = GIB_Argv (2);
|
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),
|
GIB_Error ("file", "%s: could not move %s to %s: %s", GIB_Argv (0),
|
||||||
path1, path2, strerror (errno));
|
path1, path2, strerror (errno));
|
||||||
}
|
}
|
||||||
|
@ -908,7 +907,7 @@ GIB_File_Delete_f (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
path = GIB_Argv (1);
|
path = GIB_Argv (1);
|
||||||
if (Qremove (path))
|
if (QFS_Remove (path))
|
||||||
GIB_Error ("file", "%s: could not delete %s: %s", GIB_Argv (0), path,
|
GIB_Error ("file", "%s: could not delete %s: %s", GIB_Argv (0), path,
|
||||||
strerror (errno));
|
strerror (errno));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue