mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-06 17:01:58 +00:00
* Inspired by how IW4x identifies x64 zones Co-authored-by: William Roy <[email protected]>
20 lines
618 B
C++
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);
|