reenable RageFileObjInflate::Copy. 3+ years is long enough to give

people to upgrade zlib ...
This commit is contained in:
Glenn Maynard
2007-02-23 09:53:01 +00:00
parent a7cadaa835
commit 41521eeb2e
+4 -9
View File
@@ -48,26 +48,21 @@ RageFileObjInflate::RageFileObjInflate( const RageFileObjInflate &cpy ):
{
/* XXX completely untested */
/* Copy the entire decode state. */
/* inflateInit2 isn't widespread yet */
ASSERT( 0 );
/*
m_pFile = cpy.m_pFile->Copy();
m_bFileOwned = true;
m_pInflate = new z_stream;
m_iUncompressedSize = cpy.m_iUncompressedSize;
m_iFilePos = cpy.m_iFilePos;
inflateCopy( m_pInflate, const_cast<z_stream*>(cpy.m_pInflate) );
// memcpy decomp_buf?
decomp_buf_ptr = decomp_buf + (cpy.decomp_buf_ptr - cpy.decomp_buf);
decomp_buf_avail = cpy.decomp_buf_avail;
m_iFilePos = cpy.m_iFilePos;
*/
memcpy( decomp_buf, cpy.decomp_buf, decomp_buf_avail );
}
RageFileObjInflate *RageFileObjInflate::Copy() const
{
RageException::Throw( "Loading ZIPs from deflated ZIPs is currently disabled; see RageFileObjInflate." );
// return new RageFileObjInflate( *this, p );
return new RageFileObjInflate( *this );
}