


#include "main.h"
#include <windows.h>
DWORD CShellBase = (DWORD) GetModuleHandle("cshell.dll");
DWORD NoReload = CShellBase + 0xA2A7E8;
void NoReloading()
{
*(DWORD*)(*(DWORD*)NoReload) = 100;
*(DWORD*)((*(DWORD*)NoReload) + 0x2424) = 100;
}
extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
MessageBox(NULL, "NoReload hack by _corn_\nMade for MPGH", "Injected Successfully!", MB_OK);
NoReloading();
break;
}
return TRUE;
}

void NoReload()
{
DWORD CShell = NULL;
do
{
CShell = (DWORD)GetModuleHandle("CShell.dll");
Sleep(100);
} while (CShell == NULL);
while (1)
{
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8)) +(4*i))) + 0x2424) = 100.0f;
}
Sleep(100);
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)NoReload, NULL, NULL, NULL);
}
return TRUE;
}
Good Luck Again