const char *FS_FileWithoutPath (const char *in);
const char *FS_FileExtension (const char *in);
int FS_CheckNastyPath (const char *path, qboolean isgamedir);
+int FS_rmtree(const char *dir);
extern const char *const fs_checkgamedir_missing; // "(missing)"
const char *FS_CheckGameDir(const char *gamedir); // returns NULL if nasty, fs_checkgamedir_missing (exact pointer) if missing
qboolean Draw_PicExists(const char *name) {
char vabuf[1024] = { 0 };
const char *checkfmt[] = { "%s.tga", "%s.png", "%s.jpg", "%s.pcx" };
- int i;
+ long unsigned int i;
// TODO: actually use the gfx format list for this
for (i = 0; i < sizeof(checkfmt) / sizeof(checkfmt[0]); ++i)
if (FS_FileExists(va(vabuf, sizeof(vabuf), checkfmt[i], name)))
FS_Close(f1);
FS_Close(f2);
PRVM_G_FLOAT(OFS_RETURN) = -3;
- VM_Warning(prog, "VM_fcopy: %s read %I64d from %s but wrote %I64d to %s\n", prog->name, rx, fname1, wx, fname2);
+ VM_Warning(prog, "VM_fcopy: %s read %lli from %s but wrote %lli to %s\n", prog->name, rx, fname1, wx, fname2);
return;
}
}