*** HACK DETECTION ***
Go to file
2017-07-08 00:18:05 -04:00
screenshots Added README and screenshots. 2017-07-07 22:59:34 -04:00
.gitignore .gitignore: Ignore *.res files. 2017-07-07 22:39:17 -04:00
build-gcc.sh build-gcc.sh: Allow CC, OBJCOPY, STRIP, and RC to be overridden. 2017-07-07 22:38:39 -04:00
build-msvc.bat build-msvc.bat: Use the static MSVC runtime. 2017-07-07 23:39:55 -04:00
hack-detection.c Show "COPY DETECTION" if both ROMs have identical content, ignoring padding. 2017-07-08 00:17:05 -04:00
hack-detection.exe.manifest *** HACK DETECTION *** v1.0.2 2017-07-08 00:18:05 -04:00
hack-detection.ico hack-detection.ico: Simple icon. 2017-07-07 22:24:45 -04:00
LICENSE Added the GNU AGPLv3 as the license. 2017-07-07 22:52:11 -04:00
README.md README.md: Removed MinGW because it doesn't work for me right now; added OpenBSD. 2017-07-08 00:01:35 -04:00
resource.rc *** HACK DETECTION *** v1.0.2 2017-07-08 00:18:05 -04:00
tchar_xplt.h Use Unicode functions on Windows. (TCHAR functions) 2017-07-07 20:52:31 -04:00

*** HACK DETECTION ***

This is a simple command line utility that can check if a ROM hack appears to be a hex-edited binary hack instead of a hack based on a disassembly. It works by checking how many bytes in the two ROMs match and how many differ. If more than 50% of the bytes are identical, it is assumed to be a hex-edited binary hack.

If the source ROM has extra padding at the end (due to ROM chips being powers-of-two sizes), the padding is ignored. Only the used area is checked.

If the hacked ROM is smaller than the source ROM, then anything past the hacked ROM's size in the source ROM is ignored.

How to use:

$ hack-detection [Source ROM] [Hacked ROM]
  • Source ROM: The original ROM, e.g. "Sonic 1 Rev00.gen".
  • Hacked ROM: The hacked ROM, e.g. "Sonic 1337.gen".

Screenshots

These examples use Sonic 1 Rev00 as the source ROM and Sonic 1337 as the hacked ROM.

hack-detection on Windows XP

hack-detection on xterm (KDE5)

How to compile

  • On Linux or other Unix-like systems: ./build-gcc.sh
  • On Windows, using MSVC (2010 or later): Run build-msvc.bat from an MSVC command prompt.

Tested on the following platforms:

  • Gentoo Linux (amd64)
  • OpenBSD (amd64)
  • Windows XP (i386)
  • Windows 7 (amd64)

License

hack-detection is licensed under the GNU AGPLv3. See LICENSE for more information.