mirror of
https://github.com/alicealys/t5-gsc-utils.git
synced 2025-04-18 20:22:52 +00:00
Fix build
This commit is contained in:
parent
c4e6a08985
commit
5dfa3677bf
@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
call git submodule update --init --recursive
|
||||
tools\windows\premake5.exe vs2022
|
||||
tools\premake5.exe vs2022
|
@ -14,6 +14,15 @@
|
||||
|
||||
namespace scripting
|
||||
{
|
||||
std::unordered_map<int, std::unordered_map<std::string, int>> fields_table;
|
||||
|
||||
std::unordered_map<std::string, game::BuiltinMethodDef> method_map;
|
||||
std::unordered_map<std::string, game::BuiltinFunctionDef> function_map;
|
||||
|
||||
std::unordered_map<std::string, std::unordered_map<std::string, const char*>> script_function_table;
|
||||
std::unordered_map<std::string, std::vector<std::pair<std::string, const char*>>> script_function_table_sort;
|
||||
std::unordered_map<const char*, std::pair<std::string, std::string>> script_function_table_rev;
|
||||
|
||||
namespace
|
||||
{
|
||||
utils::hook::detour g_shutdown_game_hook;
|
||||
|
@ -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<std::pair<std::string, std::string>> find_function_pair(const char* pos);
|
||||
|
||||
void on_shutdown(const std::function<void()>& callback);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user