# HG changeset patch # User Matti Hamalainen # Date 1558799857 -10800 # Node ID 9dc2976e9fa373a4af1aef4f792a5795dd516df6 # Parent 2d0db1e6b4a7e66e87de1efb04d3b21911f9cf5c Improve probing of packed and unpacked Koala files. Many converters and tools produce differently sized variants that were previously being mis-detected. diff -r 2d0db1e6b4a7 -r 9dc2976e9fa3 tools/lib64fmts.c --- a/tools/lib64fmts.c Sat May 25 18:40:52 2019 +0300 +++ b/tools/lib64fmts.c Sat May 25 18:57:37 2019 +0300 @@ -65,7 +65,8 @@ { int score = DM_PROBE_SCORE_FALSE; - if (buf->len == 10003) + if (buf->len == 10003 || + buf->len == 10004) score += DM_PROBE_SCORE_MAYBE; if (dmCompareAddr16(buf, 0, fmt->addr)) @@ -79,8 +80,7 @@ { // Attempt to prevent misprobes of unpacked Koala and Run Paint if (buf->len > 30 && - buf->len != 10006 && - buf->len != 10003 && + buf->len < 10002 && dmCompareAddr16(buf, 0, fmt->addr)) return DM_PROBE_SCORE_GOOD;