From b987b7a8e5a78ff3cd63da062917b1c5fce91cc2 Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 21 Mar 2018 01:28:14 +0300 Subject: MurLua: various fixes - fixed script reloading - fixed string interpolation - hook and service refs moved to Enviroment - removed RegisterProtocol from m_protocols - code cleanup - version bump --- plugins/MirLua/src/mlua_environment.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/MirLua/src/mlua_environment.h') diff --git a/plugins/MirLua/src/mlua_environment.h b/plugins/MirLua/src/mlua_environment.h index eb72bf42b8..aa6ebb103a 100644 --- a/plugins/MirLua/src/mlua_environment.h +++ b/plugins/MirLua/src/mlua_environment.h @@ -4,7 +4,9 @@ class CMLuaEnvironment { private: - int id; + int m_id; + std::map m_hookRefs; + std::map m_serviceRefs; void CreateEnvironmentTable(); @@ -19,6 +21,12 @@ public: int GetId() const; + void AddHookRef(HANDLE h, int ref); + void ReleaseHookRef(HANDLE h); + + void AddServiceRef(HANDLE h, int ref); + void ReleaseServiceRef(HANDLE h); + bool Load(); }; -- cgit v1.2.3