diff --git a/.gitmodules b/.gitmodules index 1c55655..8b359a3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "cmake/clang"] path = cmake/clang url = https://github.com/Xaymar/cmake-clang +[submodule "third-party/zlib-ng"] + path = third-party/zlib-ng + url = https://github.com/zlib-ng/zlib-ng diff --git a/extra/010 Editor/stingray_bundle.bt b/extra/010 Editor/stingray_bundle.bt index 30d4612..b359310 100644 --- a/extra/010 Editor/stingray_bundle.bt +++ b/extra/010 Editor/stingray_bundle.bt @@ -27,6 +27,10 @@ struct stingray_bundle_t { uint32_t __unk; uint32_t count; + // Vermintide 1's format differs. + //uint32_t __unk; + //uint32_t __unk; + //uint32_t __unk; struct { uint32_t count; struct { diff --git a/extra/010 Editor/stingray_stream.bt b/extra/010 Editor/stingray_stream.bt index 838dab6..e64da9b 100644 --- a/extra/010 Editor/stingray_stream.bt +++ b/extra/010 Editor/stingray_stream.bt @@ -41,6 +41,7 @@ struct stingray_stream_t { LittleEndian(); uint32_t __unk ; uint32_t __unk ; + do { struct { uint32_t size ; struct { @@ -57,7 +58,8 @@ struct stingray_stream_t { } char data[size - 6]; uint32_t adler32; - } zlib[2] ; + } zlib ; + } while (FTell() != FileSize()); }; #ifndef IS_INCLUDE diff --git a/third-party/zlib-ng b/third-party/zlib-ng new file mode 160000 index 0000000..93b870f --- /dev/null +++ b/third-party/zlib-ng @@ -0,0 +1 @@ +Subproject commit 93b870fbefa3dc788625ec2c752bd2abdec601d8