Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion managed/CounterStrikeSharp.API/Core/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ public static IntPtr FindVirtualTable(string modulepath, string vtablename){
ScriptContext.GlobalScriptContext.Reset();
ScriptContext.GlobalScriptContext.Push(modulepath);
ScriptContext.GlobalScriptContext.Push(vtablename);
ScriptContext.GlobalScriptContext.SetIdentifier(0xB4A0F13C);
ScriptContext.GlobalScriptContext.SetIdentifier(0xEA506CFF);
ScriptContext.GlobalScriptContext.Invoke();
ScriptContext.GlobalScriptContext.CheckErrors();
return (IntPtr)ScriptContext.GlobalScriptContext.GetResult(typeof(IntPtr));
Expand Down
7 changes: 5 additions & 2 deletions src/core/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
*/

#include "gameconfig.h"
#include "log.h"
#include "memory_module.h"

using namespace counterstrikesharp::modules;

void* FindSignature(const char* moduleName, const char* bytesStr)
{
auto module = counterstrikesharp::modules::GetModuleByName(moduleName);
auto module = GetModuleByName(moduleName);
if (module == nullptr)
{
return nullptr;
Expand All @@ -35,7 +38,7 @@ void* FindSignature(const char* moduleName, const char* bytesStr)

void* FindVirtualTable(const char* moduleName, const char* vtableName)
{
auto module = counterstrikesharp::modules::GetModuleByName(moduleName);
auto module = GetModuleByName(moduleName);
if (module == nullptr)
{
return nullptr;
Expand Down
Loading