Fix build

This commit is contained in:
alice committed 2022-06-10 02:30:59 +02:00
1 parent bf8a38ad25
commit ed296fcd75
4 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
@echo off
call git submodule update --init --recursive
tools\windows\premake5.exe vs2022
tools\premake5.exe vs2022
+9
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;
-5
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);
}
File renamed without changes.