MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / setMPQDir

Method setMPQDir

src/Abyss/Common/Configuration.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void Configuration::setMPQDir(std::filesystem::path newDir) {
31 this->_mpqDir = std::move(newDir);
32
33 if (!_mpqDir.empty()) {
34 for (const auto &mpqFile : MPQ_LOAD_ORDER) {
35 if (std::filesystem::path const mpqPath = _mpqDir / mpqFile; exists(mpqPath)) {
36 _loadOrder.push_back(mpqPath);
37 }
38 }
39 }
40}
41
42} // namespace Abyss::Common

Callers 1

processFunction · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected