This work perfect in combination with Pinkof Antihack (or any other free). With this dll you can protect some important files (item.bmd, player.bmd, your dlls, etc) against unauthorized changes.
Use CheckCRC.exe to generate CRC32 of file.
Ex. protect for 1.04d
Download:Code://CheckSum Filesconst char* PlayerF = "Data/Player/player.bmd"; const char* ItemF_eng = "Data/Local/Eng/item_eng.bmd"; const char* ItemF_por = "Data/Local/Por/item_por.bmd"; const char* ItemF_spa = "Data/Local/Spn/item_spn.bmd"; //const char* TextF = "Data/Local/Text.bmd"; //Checksum Code unsigned long PlayerFCRC = 0x7D56FCEB; unsigned long ItemFCRC_eng = 0xF9485939; unsigned long ItemFCRC_por = 0xF9485939; unsigned long ItemFCRC_spa = 0xF9485939; //unsigned long TextFCRC = 0x370F4288; void checkCrc32() { CCRC32 MyCRC32; MyCRC32.Initialize(); unsigned long ulCRCP = MyCRC32.FileCRC(PlayerF); unsigned long ulCRC_eng = MyCRC32.FileCRC(ItemF_eng); unsigned long ulCRC_por = MyCRC32.FileCRC(ItemF_por); unsigned long ulCRC_spa = MyCRC32.FileCRC(ItemF_spa); if(ulCRCP != PlayerFCRC) { MessageBoxA(0, "Player file modified!", "Error", MB_OK | MB_ICONSTOP); ExitProcess(1); } if(ulCRC_eng != ItemFCRC_eng) { MessageBoxA(0, "Item file modified!", "Error", MB_OK | MB_ICONSTOP); ExitProcess(1); } if(ulCRC_por != ItemFCRC_por) { MessageBoxA(0, "Item file modified!", "Error", MB_OK | MB_ICONSTOP); ExitProcess(1); } if(ulCRC_spa != ItemFCRC_spa) { MessageBoxA(0, "Item file modified!", "Error", MB_OK | MB_ICONSTOP); ExitProcess(1); } }
Source: crc32u - Download - 4shared
Application to generate CRC32: CheckCRC - Download - 4shared



Reply With Quote![Protect your files against unauthorized changes [ C++ Source ]](http://ragezone.com/hyper728.png)




