diff --git a/generate.bat b/generate.bat index f3f1a6b..951520e 100644 --- a/generate.bat +++ b/generate.bat @@ -1,3 +1,3 @@ @echo off call git submodule update --init --recursive -tools\windows\premake5.exe vs2022 \ No newline at end of file +tools\premake5.exe vs2022 \ No newline at end of file diff --git a/src/component/scripting.cpp b/src/component/scripting.cpp index 565dc26..ea97eb5 100644 --- a/src/component/scripting.cpp +++ b/src/component/scripting.cpp @@ -14,6 +14,15 @@ namespace scripting { + std::unordered_map> fields_table; + + std::unordered_map method_map; + std::unordered_map function_map; + + std::unordered_map> script_function_table; + std::unordered_map>> script_function_table_sort; + std::unordered_map> script_function_table_rev; + namespace { utils::hook::detour g_shutdown_game_hook; diff --git a/src/component/scripting.hpp b/src/component/scripting.hpp index 02df595..5c872fc 100644 --- a/src/component/scripting.hpp +++ b/src/component/scripting.hpp @@ -13,10 +13,5 @@ namespace scripting using script_function = void(*)(game::scr_entref_t); - script_function find_function_ptr(const std::string& name); - std::string find_function(const char* pos); - const char* find_function_start(const char* pos); - std::optional> find_function_pair(const char* pos); - void on_shutdown(const std::function& callback); } \ No newline at end of file diff --git a/tools/windows/premake5.exe b/tools/premake5.exe similarity index 100% rename from tools/windows/premake5.exe rename to tools/premake5.exe