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
+3 -3
View File
@@ -2,7 +2,7 @@
#include "debug/Logger.hpp"
#include "engine/Engine.hpp"
#include "files/files.hpp"
#include "io/io.hpp"
#include "frontend/hud.hpp"
#include "frontend/UiDocument.hpp"
#include "graphics/render/WorldRenderer.hpp"
@@ -20,7 +20,7 @@ WorldRenderer* scripting::renderer = nullptr;
static void load_script(const std::string& name) {
auto file = engine->getPaths().getResourcesFolder() / "scripts" / name;
std::string src = files::read_string(file);
std::string src = io::read_string(file);
logger.info() << "loading script " << file.u8string();
lua::execute(lua::get_main_state(), 0, src, file.u8string());
@@ -84,7 +84,7 @@ void scripting::load_hud_script(
const std::string& fileName
) {
int env = *senv;
std::string src = files::read_string(file);
std::string src = io::read_string(file);
logger.info() << "loading script " << file.u8string();
lua::execute(lua::get_main_state(), env, src, fileName);