| 28 | } |
| 29 | |
| 30 | void 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 |