WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Game.cpp
Go to the documentation of this file.
1#include "Game.h"
2#include "GameDatabase.h"
3
4core::Game::Game() = default;
5core::Game::~Game() = default;
6
7void core::Game::init(std::unique_ptr<core::GameFolder> folder, std::unique_ptr<core::GameDatabase> db)
8{
9 m_db = std::move(db);
10 m_folder = std::move(folder);
11 if (m_folder)
12 m_folder->init();
13}
14
15void core::Game::addCustomFiles(const std::string& path, bool bypassOriginalFiles)
16{
17 if (m_folder)
18 m_folder->addCustomFiles(path, bypassOriginalFiles);
19}
std::unique_ptr< core::GameFolder > m_folder
Definition Game.h:50
std::unique_ptr< core::GameDatabase > m_db
Definition Game.h:51
core::GameFolder & folder()
Definition Game.h:37
void init(std::unique_ptr< core::GameFolder > folder, std::unique_ptr< core::GameDatabase > db)
Initialise with the given folder and database backends.
Definition Game.cpp:7
void addCustomFiles(const std::string &path, bool bypassOriginalFiles)
Overlay custom loose files on top of the game archive.
Definition Game.cpp:15