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
1 changed files with 2 additions and 6 deletions

View File

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