WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
GameLoader.h
Go to the documentation of this file.
1#pragma once
2
3// ---- Game-loading helpers -------------------------------------------------
4// Extracted from main.cpp — handles CASC storage, listfile, database init,
5// support-file downloads, and the background loading thread.
6
7#include <filesystem>
8#include <string>
9
10struct AppState;
11namespace core { class GameConfig; }
12
13namespace GameLoader
14{
15
17std::filesystem::path getApplicationDirPath();
18
20void setLoadStatus(const std::string& s, AppState& app);
21std::string getLoadStatus(AppState& app);
22
26
28void launchLoadThread(const core::GameConfig& config, AppState& app);
29
32void pollAsyncLoad(AppState& app);
33
36void beginLoadWoW(AppState& app);
37
38} // namespace GameLoader
Describes a detected game installation (locale, version, product).
Definition GameFolder.h:16
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).
void pollAsyncLoad(AppState &app)
void launchLoadThread(const core::GameConfig &config, AppState &app)
Spawn the background loading thread for the given config.
std::string getLoadStatus(AppState &app)
void loadWoWThreadFunc(core::GameConfig config, AppState &app)
void beginLoadWoW(AppState &app)
Common string utility functions (split, case-insensitive search, etc.).
Definition GameLoader.h:11
Top-level aggregate of all mutable application state.
Definition AppState.h:261