Basic .CT (Cheat Table) Writer Class

Posts 13 of 3 · Page 1 of 1
Basic .CT (Cheat Table) Writer Class
Hello !

I was a bit bored and i was thinking to an old idea i got some years ago : automatically write CE Cheat Table.
So here is a basic class for write a cheat table from a DLL, you can use it with FindPattern to make it better !.
It can be a bit bad coded somewhere, i'm sorry for that.

Example code :
Code:
#include <Windows.h>
#include "CCheatTableWriter.h"

CCheatTableWriter * Table;

BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(hModule);
		CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)CT_Start,hModule,NULL,NULL);
	}

	return TRUE;
}

void CT_Start(HMODULE hModule)
{
	Table->Start(hModule, "CCheatTableWriter.CT");

	Table->SetColor("CC0066"); // Purple

	Table->AddGroup("Test Group 1", CCOLOR_BLUE);
		Table->AddEntry(0x00400000,"Test Value",CVAR_AOB, 5);
		Table->AddEntry(0x00400000,"Test Value",CVAR_DWORD);
	Table->LeaveGroup();

	Table->AddGroup("Test Group 2", CCOLOR_RED, true);
		Table->AddEntry(0x00400000,"Test Value",CVAR_AOB, 5);
		Table->AddEntry(0x00400000,"Test Value",CVAR_DWORD);
	Table->LeaveGroup();
			
	Table->AddEntry(FindPattern(0x00410000,0x00FFFFFF,(PBYTE)MySig,"xx??xx"),"Test Value",CVAR_AOB, 5);
	Table->AddEntry(0x00400000,"Test Value",CVAR_DWORD);
	
	Table->End();
}
And the result is :

Source Code :
CCheatTableWriter.cpp - http://pastebin.com/55MdQ0FP
CCheatTableWriter.h - http://pastebin.com/pjYRgDq4
not useful but good job..
PS : you forgot CT_Start prototype
and i dont get why u are doing it as a dll?
Nice one my friend!
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?