From 32d93f81705395add4a5c4e8834b6f8b13a9a48d Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sun, 16 Sep 2018 20:12:57 +0200 Subject: [PATCH] Add notes on watching build directory with devilution-comparer --- Support/CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Support/CONTRIBUTING.md b/Support/CONTRIBUTING.md index d7352bfbc..28347a83c 100644 --- a/Support/CONTRIBUTING.md +++ b/Support/CONTRIBUTING.md @@ -191,3 +191,11 @@ Clone Devilution nightly, build and compare against the original Diablo binary: 3. `cp /path/to/diablo-v1.09b.exe .` 4. `../devilution-comparer/target/debug/devilution-comparer diablo-v1.09b.exe Diablo.exe ` (replace `` with e.g. `InitMonsterTRN`) 5. `code --diff orig.asm compare.asm` (or `diff -u orig.asm compare.asm`) + +To watch build directory for changes use the `-w` command line flag: + +```bash +$ ./devilution-comparer -w diablo-v1.09b.exe Diablo.exe InitMonsterTRN +Found InitMonsterTRN at 0x4322EC, size: 0x8C; orig size: 0x8C +Started watching Diablo.pdb for changes. CTRL+C to quit. +```