Should fix zlib-related errors in Linux distros that don't have the1.2.4 or newer version of zlib installed.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3049 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-05-20 15:23:59 +00:00
parent 555b409f8b
commit 09e168b5ac
2 changed files with 6 additions and 1 deletions

View File

@ -77,7 +77,10 @@ void CompressThread_gzip::ExecuteTaskInThread()
throw Exception::CannotCreateStream( m_filename );
gzsetparams(m_gzfp, Z_BEST_SPEED, Z_FILTERED); // Best speed at good compression
#if defined(ZLIB_VERNUM) && (ZLIB_VERNUM >= 0x1240)
gzbuffer(m_gzfp, 0x100000); // 1mb buffer size for less file fragments (Windows/NTFS)
#endif
if( m_WriteHeaderInThread )
m_WriteHeaderInThread( *this );

View File

@ -81,7 +81,9 @@ public:
if( NULL == (m_gzfp = gzopen( m_filename.ToUTF8(), "rb" )) )
throw Exception::CannotCreateStream( m_filename, "Cannot open file for reading." );
gzbuffer(m_gzfp, 0x100000); // 1mb buffer for zlib internal operations
#if defined(ZLIB_VERNUM) && (ZLIB_VERNUM >= 0x1240)
gzbuffer(m_gzfp, 0x100000); // 1mb buffer for zlib internal operations
#endif
}
virtual ~gzipReader() throw ()