WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
GameLoader Namespace Reference

Functions

std::filesystem::path getApplicationDirPath ()
 Return the directory containing the running executable.
 
void setLoadStatus (const std::string &s, AppState &app)
 Thread-safe load-status setters / getters (lock app.loadStatusMutex).
 
std::string getLoadStatus (AppState &app)
 
static bool downloadFile (const std::string &url, const std::filesystem::path &dest, const std::string &label, AppState &app, bool replaceSeparators=false)
 
static bool checkAndDownloadSupportFiles (AppState &app)
 
static void initDatabase (AppState &app)
 
static void loadWoW (const core::GameConfig &config, AppState &app)
 
void loadWoWThreadFunc (core::GameConfig config, AppState &app)
 
void launchLoadThread (const core::GameConfig &config, AppState &app)
 Spawn the background loading thread for the given config.
 
void pollAsyncLoad (AppState &app)
 
void beginLoadWoW (AppState &app)
 

Function Documentation

◆ beginLoadWoW()

void GameLoader::beginLoadWoW ( AppState app)

Validate the game path, detect configs, and either launch the load thread or show the config-selection popup. Main "Load WoW" entry.

Definition at line 311 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkAndDownloadSupportFiles()

static bool GameLoader::checkAndDownloadSupportFiles ( AppState app)
static

Definition at line 90 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ downloadFile()

static bool GameLoader::downloadFile ( const std::string &  url,
const std::filesystem::path &  dest,
const std::string &  label,
AppState app,
bool  replaceSeparators = false 
)
static

Definition at line 57 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getApplicationDirPath()

std::filesystem::path GameLoader::getApplicationDirPath ( )

Return the directory containing the running executable.

Definition at line 30 of file GameLoader.cpp.

Here is the caller graph for this function:

◆ getLoadStatus()

std::string GameLoader::getLoadStatus ( AppState app)

Definition at line 49 of file GameLoader.cpp.

Here is the caller graph for this function:

◆ initDatabase()

static void GameLoader::initDatabase ( AppState app)
static

Definition at line 125 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ launchLoadThread()

void GameLoader::launchLoadThread ( const core::GameConfig config,
AppState app 
)

Spawn the background loading thread for the given config.

Definition at line 278 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadWoW()

static void GameLoader::loadWoW ( const core::GameConfig config,
AppState app 
)
static

Definition at line 217 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadWoWThreadFunc()

void GameLoader::loadWoWThreadFunc ( core::GameConfig  config,
AppState app 
)

Entry point executed on the background thread. Downloads support files, opens CASC, loads the listfile and database.

Definition at line 267 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pollAsyncLoad()

void GameLoader::pollAsyncLoad ( AppState app)

Poll whether the background thread has finished; joins it and updates app.isWoWLoaded on success. Call once per frame from the main loop.

Definition at line 291 of file GameLoader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLoadStatus()

void GameLoader::setLoadStatus ( const std::string &  s,
AppState app 
)

Thread-safe load-status setters / getters (lock app.loadStatusMutex).

Definition at line 43 of file GameLoader.cpp.

Here is the caller graph for this function: