From 00ffc7717bfe62fe0cb7862ca1c35af0e6c590d4 Mon Sep 17 00:00:00 2001 From: Michael Oliver Date: Tue, 23 Dec 2025 09:57:13 +0000 Subject: [PATCH] feat: dump iw4 alpha 482 xbox fastfile data --- src/ZoneCommon/Game/IW4/ZoneConstantsIW4.h | 1 + src/ZoneLoading/Game/IW4/ZoneLoaderFactoryIW4.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ZoneCommon/Game/IW4/ZoneConstantsIW4.h b/src/ZoneCommon/Game/IW4/ZoneConstantsIW4.h index cb36b045..598230cd 100644 --- a/src/ZoneCommon/Game/IW4/ZoneConstantsIW4.h +++ b/src/ZoneCommon/Game/IW4/ZoneConstantsIW4.h @@ -19,6 +19,7 @@ namespace IW4 static constexpr int ZONE_VERSION_PC = 276; static constexpr int ZONE_VERSION_IW4x = 3; static constexpr int ZONE_VERSION_XENON = 269; + static constexpr int ZONE_VERSION_XENON_ALPHA = 253; static_assert(std::char_traits::length(MAGIC_SIGNED_INFINITY_WARD) == sizeof(ZoneHeader::m_magic)); static_assert(std::char_traits::length(MAGIC_SIGNED_OAT) == sizeof(ZoneHeader::m_magic)); diff --git a/src/ZoneLoading/Game/IW4/ZoneLoaderFactoryIW4.cpp b/src/ZoneLoading/Game/IW4/ZoneLoaderFactoryIW4.cpp index 14d46ef4..8a48a880 100644 --- a/src/ZoneLoading/Game/IW4/ZoneLoaderFactoryIW4.cpp +++ b/src/ZoneLoading/Game/IW4/ZoneLoaderFactoryIW4.cpp @@ -106,7 +106,8 @@ namespace }; } } - else if (endianness::FromBigEndian(header.m_version) == ZoneConstants::ZONE_VERSION_XENON) + else if (endianness::FromBigEndian(header.m_version) == ZoneConstants::ZONE_VERSION_XENON + || endianness::FromBigEndian(header.m_version) == ZoneConstants::ZONE_VERSION_XENON_ALPHA) { if (!memcmp(header.m_magic, ZoneConstants::MAGIC_UNSIGNED, std::char_traits::length(ZoneConstants::MAGIC_UNSIGNED))) {