1
0
Fork 0
forked from fte/fteqw

rawpath should be the system path, not a local path

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4394 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-06-23 01:26:43 +00:00
parent 918c67c691
commit 34f418435d

View file

@ -203,11 +203,7 @@ static vfsfile_t *QDECL FSSTDIO_OpenVFS(void *handle, flocation_t *loc, const ch
char diskname[MAX_OSPATH]; char diskname[MAX_OSPATH];
qboolean needsflush; qboolean needsflush;
//path is already cleaned, as anything that gets a valid loc needs cleaning up first. f = VFSSTDIO_Open(loc->rawname, mode, &needsflush);
snprintf(diskname, sizeof(diskname), "%s/%s", sp->rootpath, loc->rawname);
f = VFSSTDIO_Open(diskname, mode, &needsflush);
if (needsflush && sp->AddFileHash) if (needsflush && sp->AddFileHash)
sp->AddFileHash(sp->depth, loc->rawname, NULL, sp); sp->AddFileHash(sp->depth, loc->rawname, NULL, sp);
return f; return f;
@ -308,7 +304,7 @@ static qboolean QDECL FSSTDIO_FLocate(void *handle, flocation_t *loc, const char
loc->len = len; loc->len = len;
loc->offset = 0; loc->offset = 0;
loc->index = 0; loc->index = 0;
Q_strncpyz(loc->rawname, filename, sizeof(loc->rawname)); Q_strncpyz(loc->rawname, netpath, sizeof(loc->rawname));
} }
return true; return true;