Fixed up the ModLoader Project; replaced the old sources with the new

This commit is contained in:
Robert MacGregor 2014-08-05 18:31:30 -04:00
parent 83b8016a30
commit a3a954b22f
12 changed files with 62 additions and 163 deletions

View file

@ -4,11 +4,12 @@
* Modified by Robert MacGregor
*/
#include "stdafx.h"
#include "t2ConCmds.h"
#include "t2api.h"
#include <winsdkver.h>
#include <Windows.h>
#include <t2api.h>
#include <modLoader.h>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
@ -19,11 +20,6 @@ BOOL APIENTRY DllMain( HMODULE hModule,
__declspec(dllexport) void initT2Dll(void)
{
// Run Linker's old implementations ...
Con::addMethodS("GuiTSCtrl","project",&conGuiTsCtrlProject,"projects a world space vector to on-screen position",3,3);
Con::addMethodB("NetObject","SetGhostable",&conNetObjectSetGhostable,"set or unset object to be ghostable",3,3);
Con::addMethodS(NULL,"getVariable",&conGetVariable,"Get a variable without restrictions",2,2);
Con::addVariable("$cpuspeed",TypeS32,reinterpret_cast<void*>(0x8477F8)); //1 - S32, this is so i can set my cpu speed to 31337 or osmething =P
Con::addVariable("$GameBase::showBoundingBox",TypeBool,reinterpret_cast<void*>(0x9ECF24));