From b5b1f7a9cb6ad16a7c8183ff79f73534bed2324f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 4 Feb 2024 12:27:34 +0100 Subject: [PATCH 1/2] Update libchdr to the latest, which supports zstd blocks --- UWP/libchdr_UWP/libchdr_UWP.vcxproj | 5 +++-- ext/libchdr | 2 +- ext/libchdr.vcxproj | 16 ++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/UWP/libchdr_UWP/libchdr_UWP.vcxproj b/UWP/libchdr_UWP/libchdr_UWP.vcxproj index afd6fb6a3194..428f5ce87422 100644 --- a/UWP/libchdr_UWP/libchdr_UWP.vcxproj +++ b/UWP/libchdr_UWP/libchdr_UWP.vcxproj @@ -80,7 +80,8 @@ - + + false @@ -88,7 +89,7 @@ false false - ..\..\ext\zlib;..\..\ext\libchdr\include;..\..\ext\libchdr\deps\lzma-22.01\include;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) + ..\..\ext\zlib;..\..\ext\zstd\lib;..\..\ext\libchdr\include;..\..\ext\libchdr\deps\lzma-22.01\include;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories) NotUsing _7ZIP_ST;_CRT_SECURE_NO_WARNINGS;_UNICODE;UNICODE;%(PreprocessorDefinitions) diff --git a/ext/libchdr b/ext/libchdr index 9108f34a8922..26d27ca4903a 160000 --- a/ext/libchdr +++ b/ext/libchdr @@ -1 +1 @@ -Subproject commit 9108f34a892272f61c3ed3bff4bee728d4c1dd57 +Subproject commit 26d27ca4903aaccd3ef41337b29bf5ecafb1f0ca diff --git a/ext/libchdr.vcxproj b/ext/libchdr.vcxproj index 89d56f3fbe2c..74b1aecef56b 100644 --- a/ext/libchdr.vcxproj +++ b/ext/libchdr.vcxproj @@ -197,7 +197,7 @@ true ProgramDatabase false - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -216,7 +216,7 @@ true ProgramDatabase false - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -234,7 +234,7 @@ true ProgramDatabase false - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -252,7 +252,7 @@ true ProgramDatabase false - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -277,7 +277,7 @@ true false StreamingSIMDExtensions2 - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -305,7 +305,7 @@ true AnySuitable Speed - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -332,7 +332,7 @@ true AnySuitable Speed - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows @@ -359,7 +359,7 @@ true AnySuitable Speed - libchdr\include;libchdr\deps\lzma-22.01\include;zlib; + libchdr\include;libchdr\deps\lzma-22.01\include;zlib;zstd\lib; Windows From baae042d8665600481d884369f4331ba4b44ae90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 4 Feb 2024 13:03:56 +0100 Subject: [PATCH 2/2] cmake fix --- ext/libchdr-build/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libchdr-build/CMakeLists.txt b/ext/libchdr-build/CMakeLists.txt index 336d2e63efbc..b8f3e387f031 100644 --- a/ext/libchdr-build/CMakeLists.txt +++ b/ext/libchdr-build/CMakeLists.txt @@ -7,6 +7,7 @@ set(SRC_DIR ../libchdr/src) include_directories(../libchdr/deps/lzma-22.01/include) include_directories(../libchdr/include) include_directories(../zlib) +include_directories(../zstd/lib) add_definitions(-D_7ZIP_ST)