Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1841:fc4841460fad
Attempt to avoid misprobes of "Rainbow Painter (unpacked)" as packed Doodle files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Jun 2018 19:07:01 +0300 |
parents | 8d6bb48f2806 |
children | 821b8755fcbd |
comparison
equal
deleted
inserted
replaced
1840:8d6bb48f2806 | 1841:fc4841460fad |
---|---|
27 { | 27 { |
28 if (buf->len > 32 && | 28 if (buf->len > 32 && |
29 (dmCompareAddr16(buf, 0, 0x1c00) || dmCompareAddr16(buf, 0, 0x5c00))) | 29 (dmCompareAddr16(buf, 0, 0x1c00) || dmCompareAddr16(buf, 0, 0x5c00))) |
30 { | 30 { |
31 // Packed variant | 31 // Packed variant |
32 if (fmt->size == 0xfe && buf->len != fmt->size) | 32 if (fmt->size == 0xfe && |
33 buf->len != fmt->size && | |
34 buf->len != 10242) // Attempt to avoid misprobes of "Rainbow Painter (unpacked)" | |
33 return DM_PROBE_SCORE_MAX; | 35 return DM_PROBE_SCORE_MAX; |
34 | 36 |
35 // Unpacked variant | 37 // Unpacked variant |
36 if (fmt->size != 0xfe && buf->len == fmt->size) | 38 if (fmt->size != 0xfe && buf->len == fmt->size) |
37 return DM_PROBE_SCORE_MAX; | 39 return DM_PROBE_SCORE_MAX; |