#include #include "loader/component_loader.hpp" #include "game/game.hpp" #include "game/dvars.hpp" #include "scheduler.hpp" #include "command.hpp" #include "localized_strings.hpp" #include "console.hpp" #include "game_module.hpp" #include "fps.hpp" #include "server_list.hpp" #include "filesystem.hpp" #include "game/ui_scripting/execution.hpp" #include "game/scripting/execution.hpp" #include "ui_scripting.hpp" #include #include #include #include namespace ui_scripting { namespace { std::unordered_map> converted_functions; utils::hook::detour hks_start_hook; utils::hook::detour hks_shutdown_hook; utils::hook::detour hks_package_require_hook; utils::hook::detour hks_load_hook; utils::hook::detour db_find_xasset_header_hook; const auto lui_common = utils::nt::load_resource(LUI_COMMON); struct script { std::string name; std::string root; }; struct globals_t { std::string in_require_script; std::vector