Skip to content

Commit

Permalink
i think i reached the end of the dependency rabbit hole
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Dec 22, 2023
1 parent 6642bd7 commit 5c899c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion primedev/client/entity_client_tools.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "toolframework/itoolentity.h"
#include "client/cdll_client_int.h"
#include "core/tier1.h"

class CClientTools : public IClientTools
{
public:
public:
};

ON_DLL_LOAD("client.dll", ClientClientTools, (CModule module))
Expand Down
5 changes: 4 additions & 1 deletion primedev/core/tier1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ CMemoryAddress Sys_GetFactoryPtr(const std::string& svModuleName, const std::str
HMODULE hModule = GetModuleHandleA(svModuleName.c_str());

if (!hModule)
Error(eLog::NS, EXIT_FAILURE, "Failed to get module handle of '%s'!\n", svModuleName.c_str());
{
spdlog::error("Failed to get module handle of '{}'!", svModuleName.c_str());
exit(EXIT_FAILURE);
}

CreateInterfaceFn fnCreateInterface = reinterpret_cast<CreateInterfaceFn>(GetProcAddress(hModule, CREATEINTERFACE_PROCNAME));

Expand Down
2 changes: 1 addition & 1 deletion primedev/core/tier1.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

typedef void* (*CreateInterfaceFn)(const char* pName, int* pReturnCode);

CMemoryAddress Sys_GetFactoryPtr(const std::string& svModuleName, const std::string& svFact
CMemoryAddress Sys_GetFactoryPtr(const std::string& svModuleName, const std::string& svFact);

0 comments on commit 5c899c1

Please sign in to comment.