From 1b7e8786195fb8ecb7d1326dd35405e8c1d47c37 Mon Sep 17 00:00:00 2001 From: milerius Date: Tue, 15 Oct 2019 10:54:50 +0200 Subject: [PATCH] fix(emscripten): filesystem still buggy... --- modules/lua/antara/gaming/lua/lua.system.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/lua/antara/gaming/lua/lua.system.cpp b/modules/lua/antara/gaming/lua/lua.system.cpp index 8bfe2a86..cdea1aaf 100644 --- a/modules/lua/antara/gaming/lua/lua.system.cpp +++ b/modules/lua/antara/gaming/lua/lua.system.cpp @@ -53,7 +53,9 @@ namespace antara::gaming::lua assert(std::filesystem::exists(systems_directory_path_)); assert(std::filesystem::exists(script_lib_directory_)); assert(std::filesystem::exists(directory_path_)); +#ifndef EMSCRIPTEN assert(this->load_scripts(script_lib_directory_)); +#endif sol::table table = lua_state_->create_table_with("version", gaming::version()); table.new_enum("system_type", { {"pre_update", ecs::pre_update},