Skip to content

Commit

Permalink
Woops
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Apr 4, 2024
1 parent 3c939df commit cc9d4f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/detours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void Symbols_Init()
func_GMOD_LoadBinaryModule = (GMOD_LoadBinaryModule)FindFunction(lua_shared_loader.GetModule(), GMOD_LoadBinaryModuleSym);
CheckFunction(func_GMOD_LoadBinaryModule, "GMOD_LoadBinaryModule");

func_AdvancedLuaErrorReporter = (AdvancedLuaErrorReporter)FindFunction(lua_shared_loader.GetModule(), AdvancedLuaErrorReporterSym);
func_AdvancedLuaErrorReporter = (TAdvancedLuaErrorReporter)FindFunction(lua_shared_loader.GetModule(), AdvancedLuaErrorReporterSym);
CheckFunction(func_AdvancedLuaErrorReporter, "AdvancedLuaErrorReporter");

/*
Expand Down
4 changes: 4 additions & 0 deletions source/detours.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ typedef const char* (*GMOD_LoadBinaryModule)(lua_State*, const char*);
extern GMOD_LoadBinaryModule func_GMOD_LoadBinaryModule;
const Symbol GMOD_LoadBinaryModuleSym = Symbol::FromName("GMOD_LoadBinaryModule");

typedef int (*TAdvancedLuaErrorReporter)(lua_State*);
extern TAdvancedLuaErrorReporter func_AdvancedLuaErrorReporter;
const Symbol AdvancedLuaErrorReporterSym = Symbol::FromName("_Z24AdvancedLuaErrorReporterP9lua_State");

/*
server_srv stuff
*/
Expand Down

0 comments on commit cc9d4f6

Please sign in to comment.