-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdllwrap.cpp
More file actions
27 lines (22 loc) · 972 Bytes
/
dllwrap.cpp
File metadata and controls
27 lines (22 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <Windows.h>
const auto Library = LoadLibrary("../../../Engine/Binaries/ThirdParty/PhysX/APEX-1.3/Win64/VS2013/ApexFrameworkPROFILE_x64_orig.dll");
const auto OrigNiGetApexSDK = (void*(*)())(GetProcAddress(Library, "NiGetApexSDK"));
extern "C" __declspec(dllexport) void *NiGetApexSDK()
{
return OrigNiGetApexSDK();
}
const auto OrigNxCreateApexSDK = (void*(*)(void*, void*, int))(GetProcAddress(Library, "NxCreateApexSDK"));
extern "C" __declspec(dllexport) void *NxCreateApexSDK(void *a1, void *a2, int a3)
{
return OrigNxCreateApexSDK(a1, a2, a3);
}
const auto OrigNxGetApexSDK = (void*(*)())(GetProcAddress(Library, "NxGetApexSDK"));
extern "C" __declspec(dllexport) void *NxGetApexSDK()
{
return OrigNxGetApexSDK();
}
const auto OrigNxGetApexSDKVersionString = (void*(*)(int))(GetProcAddress(Library, "NxGetApexSDKVersionString"));
extern "C" __declspec(dllexport) void *NxGetApexSDKVersionString(int a1)
{
return OrigNxGetApexSDKVersionString(a1);
}