use GetFilePriv
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user