mirror of
https://github.com/Ragora/T2-IFC22Template.git
synced 2026-01-19 19:24:46 +00:00
Removed unnecessary code bit to load t2dll.dll
This commit is contained in:
parent
078afe49f6
commit
3e7e0a16cc
Binary file not shown.
|
|
@ -31,25 +31,11 @@ class CImmDevice
|
|||
public:
|
||||
_declspec(dllexport) static CImmDevice * CreateDevice(HINSTANCE__ *, HWND__ *)
|
||||
{
|
||||
typedef void (*LPINITT2DLL)(void);
|
||||
HINSTANCE hDLL = NULL;
|
||||
LPINITT2DLL lpinitT2DLL = NULL;
|
||||
hDLL = LoadLibrary(L"t2dll.dll"); // AfxLoadLibrary is probably better.
|
||||
|
||||
if (hDLL == NULL)
|
||||
return 0; // The DLL doesn't exist
|
||||
else
|
||||
lpinitT2DLL = (LPINITT2DLL)GetProcAddress(hDLL, "_Z9initT2Dllv"); // Attempt to load our entry point
|
||||
|
||||
if (lpinitT2DLL == NULL)
|
||||
return 0; // Unable to load entry point
|
||||
else
|
||||
lpinitT2DLL(); // The function was loaded, call TribesNext and move on to postTN Startup
|
||||
|
||||
// Insert Code Here
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
_declspec(dllexport) int UsesWin32MouseServices(int) { return 4; }
|
||||
_declspec(dllexport) int UsesWin32MouseServices(int) { return 4; }
|
||||
};
|
||||
|
||||
class CImmProject
|
||||
|
|
|
|||
Loading…
Reference in a new issue