mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
918c67c691
commit
34f418435d
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue