Fixed crash + debug build on windows

This commit is contained in:
Anonymous275
2021-02-21 22:19:30 +02:00
committed by Anonymous275
parent 218504e674
commit 0580ad67fd
4 changed files with 8 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ namespace fs = std::filesystem;
TResourceManager::TResourceManager() {
std::string Path = Application::Settings.Resource + "/Client";
if (!fs::exists(Path))
fs::create_directory(Path);
fs::create_directories(Path);
for (const auto& entry : fs::directory_iterator(Path)) {
auto pos = entry.path().string().find(".zip");
if (pos != std::string::npos) {