Skip to content

Commit 2d52220

Browse files
committed
repo: push temp commit. Gotta catch the bus
1 parent 010330f commit 2d52220

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

source/symbols.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ namespace Symbols
106106
NULL_SIGNATURE, // ToDo
107107
};
108108

109+
const std::vector<Symbol> CLuaInterface_ReferenceFreeSym = {
110+
Symbol::FromName("_ZN13CLuaInterface13ReferenceFreeEi"),
111+
NULL_SIGNATURE, // ToDo
112+
};
113+
114+
const std::vector<Symbol> CLuaInterface_ReferenceFreeSym = {
115+
Symbol::FromName("_ZN13CLuaInterface15ReferenceCreateEv"),
116+
NULL_SIGNATURE, // ToDo
117+
};
118+
109119
//---------------------------------------------------------------------------------
110120
// Purpose: gameevent Symbols
111121
//---------------------------------------------------------------------------------

source/symbols.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ namespace Symbols
152152
typedef void (GMCOMMON_CALLING_CONVENTION* CBaseEntity_SetMoveType)(void* ent, int, int);
153153
extern const std::vector<Symbol> CBaseEntity_SetMoveTypeSym;
154154

155+
typedef int (GMCOMMON_CALLING_CONVENTION* CLuaInterface_ReferenceCreate)(void* lua);
156+
extern const std::vector<Symbol> CLuaInterface_ReferenceCreateSym;
157+
158+
typedef void (GMCOMMON_CALLING_CONVENTION* CLuaInterface_ReferenceFree)(void* lua, int ref);
159+
extern const std::vector<Symbol> CLuaInterface_ReferenceFreeSym;
160+
155161
//---------------------------------------------------------------------------------
156162
// Purpose: gameevent Symbols
157163
//---------------------------------------------------------------------------------

source/util.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ static void hook_CSteam3Server_NotifyClientDisconnect(void* pServer, CBaseClient
197197
detour_CSteam3Server_NotifyClientDisconnect.GetTrampoline<Symbols::CSteam3Server_NotifyClientDisconnect>()(pServer, pClient);
198198
}
199199

200+
static std::unordered_set<int> g_pGmodReference;
201+
static Detouring::Hook detour_CSteam3Server_NotifyClientDisconnect;
202+
static void hook_CSteam3Server_NotifyClientDisconnect(void* pServer, CBaseClient* pClient)
203+
{
204+
205+
}
206+
200207
IGet* Util::get;
201208
CBaseEntityList* g_pEntityList = NULL;
202209
Symbols::lua_rawseti Util::func_lua_rawseti;

0 commit comments

Comments
 (0)