Fix build

This commit is contained in:
Federico Cecchetto 2022-06-10 02:30:59 +02:00
parent c4e6a08985
commit 5dfa3677bf
4 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,3 @@
@echo off
call git submodule update --init --recursive
tools\windows\premake5.exe vs2022
tools\premake5.exe vs2022

View File

@ -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;

View File

@ -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);
}