git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8820
d7cf8633-e32d-0410-b094-
e92efae38249
FS_Close(di->stream);
if(ok && di->ispak)
+ {
ok = FS_AddPack(di->filename, NULL, true);
+ if(!ok)
+ {
+ // pack loading failed?
+ // this is critical
+ // better clear the file again...
+ di->stream = FS_OpenRealFile(di->filename, "wb", false);
+ FS_Close(di->stream);
+ }
+ }
if(di->prev)
di->prev->next = di->next;
}
else
{
- qfile_t *f = FS_OpenVirtualFile(fn, false);
+ qfile_t *f = FS_OpenRealFile(fn, "rb", false);
if(f)
{
char buf[4] = {0};