From: ShadowFlare Date: Mon, 24 Aug 2009 08:45:15 +0000 (-0600) Subject: Add bzip2 compression and reorganize project files. X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=SFmpqapi.git;a=commitdiff_plain;h=5ec6acabbdf7207331585eb3bbbb5b477dcc5564 Add bzip2 compression and reorganize project files. - bzip2 and zlib are both compiled as part of the project. - SComp files are now grouped separate from SFmpq files in the project. --- diff --git a/.gitignore b/.gitignore index 16a8cc1..9fd747f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *Debug/ *Release/ *.ncb +*.opt +*.plg *.suo *.user diff --git a/SFmpqapi.cpp b/SFmpqapi.cpp index a5b264f..3c7d4fa 100644 --- a/SFmpqapi.cpp +++ b/SFmpqapi.cpp @@ -106,8 +106,8 @@ MPQFILE * FirstLastFile[2] = {0,0}; char StormBasePath[MAX_PATH+1]; -#define UNSUPPORTED_COMPRESSION (0xFF ^ (0x40 | 0x80 | 0x01 | 0x02 | 0x08)) -#define UNSUPPORTED_DECOMPRESSION (0xFF ^ (0x40 | 0x80 | 0x01 | 0x02 | 0x08)) +#define UNSUPPORTED_COMPRESSION (0xFF ^ (0x40 | 0x80 | 0x01 | 0x02 | 0x08 | 0x10)) +#define UNSUPPORTED_DECOMPRESSION (0xFF ^ (0x40 | 0x80 | 0x01 | 0x02 | 0x08 | 0x10)) typedef BOOL (WINAPI* funcSCompCompress)(LPVOID lpvDestinationMem, LPDWORD lpdwCompressedSize, LPVOID lpvSourceMem, DWORD dwDecompressedSize, DWORD dwCompressionType, DWORD dwCompressionSubType, DWORD dwWAVQuality); typedef BOOL (WINAPI* funcSCompDecompress)(LPVOID lpvDestinationMem, LPDWORD lpdwDecompressedSize, LPVOID lpvSourceMem, DWORD dwCompressedSize); diff --git a/SFmpqapi.def b/SFmpqapi.def index 88051ec..cc448f8 100644 --- a/SFmpqapi.def +++ b/SFmpqapi.def @@ -109,3 +109,13 @@ EXPORTS get_crc_table compress2 +;bzip2 exports + BZ2_bzCompressInit + BZ2_bzCompress + BZ2_bzCompressEnd + BZ2_bzDecompressInit + BZ2_bzDecompress + BZ2_bzDecompressEnd + BZ2_bzBuffToBuffCompress + BZ2_bzBuffToBuffDecompress + BZ2_bzlibVersion diff --git a/SFmpqapi.dsp b/SFmpqapi.dsp index 495ad44..a2d82a7 100644 --- a/SFmpqapi.dsp +++ b/SFmpqapi.dsp @@ -44,7 +44,8 @@ RSC=rc.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /YX /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /Ob2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /D "BZ_NO_STDIO" /FD /c +# SUBTRACT CPP /YX # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" @@ -71,8 +72,8 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /YX /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /YX /FD /GZ /c -# SUBTRACT CPP /Fr +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /D "BZ_NO_STDIO" /FD /GZ /c +# SUBTRACT CPP /Fr /YX # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "_DEBUG" @@ -99,7 +100,8 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /YX /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /D "BETA" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /Ob2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SFMPQAPI_EXPORTS" /D "ZLIB_DLL" /D "BZ_NO_STDIO" /D "BETA" /FD /c +# SUBTRACT CPP /YX # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 # ADD BASE RSC /l 0x409 /d "NDEBUG" @@ -125,50 +127,181 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=..\SComp\explode.c +SOURCE=.\SFmpqapi.cpp # End Source File # Begin Source File -SOURCE=..\SComp\huffman.cpp +SOURCE=.\SFmpqapi.def # End Source File # Begin Source File -SOURCE=..\SComp\implode.c +SOURCE=.\SFmpqapi.odl # End Source File # Begin Source File -SOURCE=..\SComp\SComp.cpp +SOURCE=.\SFmpqapi.rc # End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File -SOURCE=..\SComp\SErr.cpp +SOURCE=.\SFmpqapi.h # End Source File +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" # Begin Source File -SOURCE=.\SFmpqapi.cpp +SOURCE=.\about # End Source File +# End Group +# Begin Group "SComp" + +# PROP Default_Filter "" +# Begin Group "Base" + +# PROP Default_Filter "" +# Begin Group "Source Files (Base)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=.\SFmpqapi.def +SOURCE=..\SComp\explode.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + # End Source File # Begin Source File -SOURCE=.\SFmpqapi.odl +SOURCE=..\SComp\huffman.cpp + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + # End Source File # Begin Source File -SOURCE=.\SFmpqapi.rc +SOURCE=..\SComp\implode.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\SComp.cpp + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\SErr.cpp + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\SMem.cpp + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\wave.cpp + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp" + +!ENDIF + # End Source File # End Group -# Begin Group "Header Files" +# Begin Group "Header Files (Base)" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File @@ -181,48 +314,385 @@ SOURCE=..\SComp\pklib.h # End Source File # Begin Source File -SOURCE=.\SComp.h +SOURCE=..\SComp\SComp.h # End Source File # Begin Source File -SOURCE=..\SComp\SComp.h +SOURCE=..\SComp\SErr.h # End Source File # Begin Source File -SOURCE=..\SComp\SErr.h +SOURCE=..\SComp\SMem.h # End Source File # Begin Source File -SOURCE=.\SFmpqapi.h +SOURCE=..\SComp\wave.h # End Source File +# End Group +# End Group +# Begin Group "bzip2" + +# PROP Default_Filter "" +# Begin Group "Source Files (bzip2)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=..\SComp\SMem.h +SOURCE=..\SComp\bzip2\blocksort.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + # End Source File # Begin Source File -SOURCE=..\SComp\wave.h +SOURCE=..\SComp\bzip2\bzlib.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\compress.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + # End Source File # Begin Source File -SOURCE=..\SComp\zconf.h +SOURCE=..\SComp\bzip2\crctable.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + # End Source File # Begin Source File -SOURCE=..\SComp\zlib.h +SOURCE=..\SComp\bzip2\decompress.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\huffman.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\randtable.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/bzip2" + +!ENDIF + # End Source File # End Group -# Begin Group "Resource Files" +# Begin Group "Header Files (bzip2)" -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File -SOURCE=.\about +SOURCE=..\SComp\bzip2\bzlib.h +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\bzlib_private.h +# End Source File +# End Group +# End Group +# Begin Group "zlib" + +# PROP Default_Filter "" +# Begin Group "Source Files (zlib)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\SComp\zlib\adler32.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\compress.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\crc32.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\deflate.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inffast.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inflate.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inftrees.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\trees.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\uncompr.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\zutil.c + +!IF "$(CFG)" == "SFmpqapi - Win32 Release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Debug" + +# PROP Intermediate_Dir "Debug/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqapi - Win32 Beta release" + +# PROP Intermediate_Dir "Release/SComp/zlib" + +!ENDIF + # End Source File # End Group +# Begin Group "Header Files (zlib)" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File -SOURCE=..\SComp\ZLib_Static_min.lib +SOURCE=..\SComp\zlib\zconf.h # End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\zlib.h +# End Source File +# End Group +# End Group +# End Group # End Target # End Project diff --git a/SFmpqapi.vcproj b/SFmpqapi.vcproj index 04ec697..5014692 100644 --- a/SFmpqapi.vcproj +++ b/SFmpqapi.vcproj @@ -50,9 +50,9 @@ - - - - - - - - - + + - - - - - - - - - - + + - - - - - - - + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + - - - - - - - + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -542,117 +1199,7 @@ /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SFmpqlib.dsp b/SFmpqlib.dsp index f2a9953..a642235 100644 --- a/SFmpqlib.dsp +++ b/SFmpqlib.dsp @@ -41,7 +41,8 @@ RSC=rc.exe # PROP Intermediate_Dir "SFmpqlib___Win32_Release" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_LIB" /D "SFMPQ_STATIC" /D "ZLIB_DLL" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_LIB" /D "SFMPQ_STATIC" /D "ZLIB_DLL" /D "BZ_NO_STDIO" /FD /c +# SUBTRACT CPP /YX # ADD BASE RSC /l 0x409 /d "NDEBUG" # ADD RSC /l 0x409 /d "NDEBUG" BSC32=bscmake.exe @@ -64,7 +65,8 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "SFmpqlib___Win32_Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_LIB" /D "SFMPQ_STATIC" /D "ZLIB_DLL" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_LIB" /D "SFMPQ_STATIC" /D "ZLIB_DLL" /D "BZ_NO_STDIO" /FD /GZ /c +# SUBTRACT CPP /YX # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe @@ -85,42 +87,141 @@ LIB32=link.exe -lib # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File +SOURCE=.\SFmpq_static.cpp +# End Source File +# Begin Source File + +SOURCE=.\SFmpqapi.cpp +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\SFmpq_static.h +# End Source File +# Begin Source File + +SOURCE=.\SFmpqapi.h +# End Source File +# End Group +# Begin Group "SComp" + +# PROP Default_Filter "" +# Begin Group "Base" + +# PROP Default_Filter "" +# Begin Group "Source Files (Base)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + SOURCE=..\SComp\explode.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\huffman.cpp + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\implode.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\SComp.cpp + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\SErr.cpp -# End Source File -# Begin Source File -SOURCE=.\SFmpq_static.cpp -# End Source File -# Begin Source File +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF -SOURCE=.\SFmpqapi.cpp # End Source File # Begin Source File SOURCE=..\SComp\SMem.cpp + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # Begin Source File SOURCE=..\SComp\wave.cpp + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp" + +!ENDIF + # End Source File # End Group -# Begin Group "Header Files" +# Begin Group "Header Files (Base)" # PROP Default_Filter "h;hpp;hxx;hm;inl" # Begin Source File @@ -141,24 +242,309 @@ SOURCE=..\SComp\SErr.h # End Source File # Begin Source File -SOURCE=.\SFmpq_static.h +SOURCE=..\SComp\SMem.h # End Source File # Begin Source File -SOURCE=.\SFmpqapi.h +SOURCE=..\SComp\wave.h # End Source File +# End Group +# End Group +# Begin Group "bzip2" + +# PROP Default_Filter "" +# Begin Group "Source Files (bzip2)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=..\SComp\SMem.h +SOURCE=..\SComp\bzip2\blocksort.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + # End Source File # Begin Source File -SOURCE=..\SComp\wave.h +SOURCE=..\SComp\bzip2\bzlib.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\compress.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\crctable.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\decompress.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\huffman.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\randtable.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/bzip2" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/bzip2" + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files (bzip2)" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\SComp\bzip2\bzlib.h +# End Source File +# Begin Source File + +SOURCE=..\SComp\bzip2\bzlib_private.h +# End Source File +# End Group +# End Group +# Begin Group "zlib" + +# PROP Default_Filter "" +# Begin Group "Source Files (zlib)" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\SComp\zlib\adler32.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\compress.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\crc32.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\deflate.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inffast.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inflate.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\inftrees.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\trees.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\uncompr.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=..\SComp\zlib\zutil.c + +!IF "$(CFG)" == "SFmpqlib - Win32 Release" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Release/SComp/zlib" + +!ELSEIF "$(CFG)" == "SFmpqlib - Win32 Debug" + +# PROP Intermediate_Dir "SFmpqlib___Win32_Debug/SComp/zlib" + +!ENDIF + # End Source File # End Group +# Begin Group "Header Files (zlib)" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\SComp\zlib\zconf.h +# End Source File # Begin Source File -SOURCE=..\SComp\ZLib_Static_min.lib +SOURCE=..\SComp\zlib\zlib.h # End Source File +# End Group +# End Group +# End Group # End Target # End Project diff --git a/SFmpqlib.vcproj b/SFmpqlib.vcproj index 7a575cd..b8dd17c 100644 --- a/SFmpqlib.vcproj +++ b/SFmpqlib.vcproj @@ -4,6 +4,7 @@ Version="9.00" Name="SFmpqlib" ProjectGUID="{2AB3EE05-94F1-433F-A9CF-F7E01220445D}" + RootNamespace="SFmpqlib" TargetFrameworkVersion="0" > @@ -42,7 +43,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -310,67 +211,11 @@ /> - - - - - - - - - - - - - - - - - - - - - - - - @@ -379,19 +224,587 @@ RelativePath="SFmpqapi.h" > - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -