mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Initial commit.
This commit is contained in:
commit
d968c3e1b5
238 changed files with 86384 additions and 0 deletions
17
steamclient.cpp
Normal file
17
steamclient.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
//#include "dll.h"
|
||||
#include "Windows.h"
|
||||
#ifdef _WIN64
|
||||
#define DLL_NAME "steam_api64.dll"
|
||||
#else
|
||||
#define DLL_NAME "steam_api.dll"
|
||||
#endif
|
||||
|
||||
extern "C" __declspec( dllexport ) void *CreateInterface( const char *pName, int *pReturnCode )
|
||||
{
|
||||
//PRINT_DEBUG("steamclient CreateInterface %s\n", pName);
|
||||
HMODULE steam_api = LoadLibraryA(DLL_NAME);
|
||||
void *(__stdcall* create_interface)(const char*) = (void * (__stdcall *)(const char*))GetProcAddress(steam_api, "SteamInternal_CreateInterface");
|
||||
|
||||
return create_interface(pName);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue