wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
mpq_chain.cpp File Reference
#include <wowlib/fs/mpq/mpq_chain.hpp>
#include <algorithm>
#include <array>
#include <cstdint>
#include <format>
#include <optional>
#include <string>
#include <utility>
Include dependency graph for mpq_chain.cpp:

Go to the source code of this file.

Namespaces

namespace  wowlib
namespace  wowlib::fs
namespace  wowlib::fs::detail

Functions

const MpqChainSpec * wowlib::fs::detail::findChainSpec (const ClientVersion &version)
 The chain spec for version: exact build match first, then major.minor.patch.
Result< std::vector< ChainMember > > wowlib::fs::detail::expandChain (const MpqChainSpec &spec, const std::filesystem::path &dataDir, Locale locale)
 Expand a chain spec against a Data directory into concrete members in load order (lowest -> highest priority): the base tier in table order, then the patch tier as ONE list sorted by the client's case-insensitive, extension-stripped filename order (so patch < patch-2 < ..., with base and locale patches interleaved — a high base letter-patch like patch-Z outranks the locale patches).