wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::fs::ClientInstall Struct Reference

#include <wowlib/fs/client_install.hpp>

Static Public Member Functions

static Result< ClientInstall > detect (std::filesystem::path clientPath)

Public Attributes

std::filesystem::path path
 The installation directory that was inspected — the one holding Data/, ready to hand to FileSystemSettings.
ClientVersion version
 The exact installed version, flavor included.
std::string cascProduct
 The exact TACT product code the installation records ('wow', 'wow_classic_era', 'wow_classic_ptr', ...) — which can be more specific than the flavor's default.

Detailed Description

Definition at line 16 of file client_install.hpp.

Member Function Documentation

◆ detect()

Result< ClientInstall > wowlib::fs::ClientInstall::detect ( std::filesystem::path clientPath)
static
Returns
the detected installation, or NotSupported when the directory carries no CASC build information
Parameters
clientPaththe installation directory holding Data/

Definition at line 152 of file client_install.cpp.

References wowlib::IoError, wowlib::makeError(), wowlib::NotSupported, and version.

Referenced by wowlib::fs::FileSystemSettings::detect().

Member Data Documentation

◆ cascProduct

std::string wowlib::fs::ClientInstall::cascProduct

The exact TACT product code the installation records ('wow', 'wow_classic_era', 'wow_classic_ptr', ...) — which can be more specific than the flavor's default.

Definition at line 24 of file client_install.hpp.

◆ path

std::filesystem::path wowlib::fs::ClientInstall::path

The installation directory that was inspected — the one holding Data/, ready to hand to FileSystemSettings.

Definition at line 18 of file client_install.hpp.

◆ version

ClientVersion wowlib::fs::ClientInstall::version

The exact installed version, flavor included.

Definition at line 21 of file client_install.hpp.

Referenced by detect().


The documentation for this struct was generated from the following files: