rename 'files' to 'io'

This commit is contained in:
MihailRis
2025-01-30 16:53:52 +03:00
parent e5d558d357
commit 1e22882284
45 changed files with 157 additions and 160 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
#include "coders/json.hpp"
#include "constants.hpp"
#include "files/files.hpp"
#include "io/io.hpp"
#include "items/ItemDef.hpp"
#include "voxels/Block.hpp"
#include "world/World.hpp"
@@ -75,7 +75,7 @@ std::shared_ptr<ContentReport> ContentReport::create(
return nullptr;
}
auto root = files::read_json(filename);
auto root = io::read_json(filename);
uint regionsVersion = 2U; // old worlds compatibility (pre 0.23)
root.at("region-version").get(regionsVersion);
auto& blocklist = root["blocks"];