use GetFilePriv

This commit is contained in:
Glenn Maynard
2004-09-05 03:41:40 +00:00
parent 0bfb1d5058
commit cbea6c75bc
+2 -3
View File
@@ -399,15 +399,14 @@ RageFileObj *RageFileDriverZip::Open( const CString &path, int mode, RageFile &p
return NULL; return NULL;
} }
const File *f = FDB->GetFile( path ); FileInfo *info = (FileInfo *) FDB->GetFilePriv( path );
if( f == NULL ) if( info == NULL )
{ {
err = ENOENT; err = ENOENT;
return NULL; return NULL;
} }
/* If we havn't figured out the offset to the real data yet, do so now. */ /* If we havn't figured out the offset to the real data yet, do so now. */
FileInfo *info = (FileInfo *) f->priv;
if( info->data_offset == -1 ) if( info->data_offset == -1 )
{ {
zip.Seek( info->offset ); zip.Seek( info->offset );