Removed unnecessary code bit to load t2dll.dll

This commit is contained in:
Robert MacGregor 2014-05-25 17:22:43 -04:00
parent 078afe49f6
commit 3e7e0a16cc
2 changed files with 3 additions and 17 deletions

View file

@ -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