mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
555b409f8b
commit
09e168b5ac
|
@ -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 );
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue