Fix client paths (#811)

This commit is contained in:
David Markowitz
2022-11-02 20:30:35 -07:00
committed by GitHub
parent 353c328485
commit 8edade5f98
4 changed files with 17 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
#include "PackIndex.h"
#include "BinaryIO.h"
#include "Game.h"
#include "dLogger.h"
PackIndex::PackIndex(const std::filesystem::path& filePath) {
m_FileStream = std::ifstream(filePath / "versions" / "primary.pki", std::ios::in | std::ios::binary);
@@ -34,7 +36,9 @@ PackIndex::PackIndex(const std::filesystem::path& filePath) {
Game::logger->Log("PackIndex", "Loaded pack catalog with %i pack files and %i files", m_PackPaths.size(), m_PackFileIndices.size());
for (const auto& item : m_PackPaths) {
for (auto& item : m_PackPaths) {
std::replace(item.begin(), item.end(), '\\', '/');
auto* pack = new Pack(filePath / item);
m_Packs.push_back(pack);