mirror of
https://github.com/Ragora/T2-IFC22Template.git
synced 2026-07-16 06:34:32 +00:00
Removed unnecessary code bit to load t2dll.dll
This commit is contained in:
parent
078afe49f6
commit
3e7e0a16cc
2 changed files with 3 additions and 17 deletions
Binary file not shown.
|
|
@ -31,25 +31,11 @@ class CImmDevice
|
||||||
public:
|
public:
|
||||||
_declspec(dllexport) static CImmDevice * CreateDevice(HINSTANCE__ *, HWND__ *)
|
_declspec(dllexport) static CImmDevice * CreateDevice(HINSTANCE__ *, HWND__ *)
|
||||||
{
|
{
|
||||||
typedef void (*LPINITT2DLL)(void);
|
// Insert Code Here
|
||||||
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
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_declspec(dllexport) int UsesWin32MouseServices(int) { return 4; }
|
_declspec(dllexport) int UsesWin32MouseServices(int) { return 4; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class CImmProject
|
class CImmProject
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue