Files
OpenAssetTools/src/ZoneLoading/Loading/WordSizeDeterminator.h
T
Jan Laupetinandwroy 4b082ca4f3 refactor: inspect iw4 and iw5 XAssetList to determine word size
* Inspired by how IW4x identifies x64 zones

Co-authored-by: William Roy <[email protected]>
2026-10-31 07:50:48 +01:00

20 lines
618 B
C++

#pragma once
#include "Game/GameVariant.h"
#include "ZoneLoader.h"
#include <optional>
struct XAssetListOffsets
{
size_t offsetStringCount;
size_t offsetStringPointer;
size_t offsetAssetCount;
size_t offsetAssetPointer;
};
std::optional<GameWordSize> DetermineWordSizeFromXAssetList(std::istream& stream,
std::unique_ptr<ZoneReader> zoneReader,
const XAssetListOffsets& offsets32,
const XAssetListOffsets& offsets64);