MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / RegisterConsoleProgramServer_Hook

Function RegisterConsoleProgramServer_Hook

src/Engine/Engine.cpp:1508–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1506}
1507
1508static int __stdcall RegisterConsoleProgramServer_Hook(char* name, int funcPtr)
1509{
1510 int result = RegisterConsoleProgramServer(name, funcPtr);
1511
1512 if (result == 0 && name && name[0])
1513 {
1514 g_consolePrograms.insert(name);
1515 }
1516
1517 return result;
1518}
1519
1520static int __stdcall UnregisterConsoleProgramClient_Hook(char* name)
1521{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected