#include #include "loader/component_loader.hpp" #include "game/game.hpp" #include "game/dvars.hpp" #include "scheduler.hpp" #include "command.hpp" #include "filesystem.hpp" #include "localized_strings.hpp" #include "scripting.hpp" #include "fastfiles.hpp" #include "mods.hpp" #include "updater.hpp" #include "console.hpp" #include "language.hpp" #include "game/ui_scripting/execution.hpp" #include "game/scripting/execution.hpp" #include "ui_scripting.hpp" #include #include #include namespace ui_scripting { namespace { const auto lui_common = utils::nt::load_resource(LUI_COMMON); const auto lui_updater = utils::nt::load_resource(LUI_UPDATER); const auto lua_json = utils::nt::load_resource(LUA_JSON); std::unordered_map> converted_functions; utils::hook::detour hks_start_hook; utils::hook::detour hks_shutdown_hook; utils::hook::detour hks_package_require_hook; struct script { std::string name; std::string root; }; struct globals_t { std::string in_require_script; std::vector