Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1771:c261db6e39aa
Adjust some probe scores.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 Jun 2018 13:55:58 +0300 |
parents | a176dea422cb |
children | 5d7c89ad0bb4 |
comparison
equal
deleted
inserted
replaced
1770:a176dea422cb | 1771:c261db6e39aa |
---|---|
15 // Attempt to prevent misprobes of unpacked Koala and Run Paint | 15 // Attempt to prevent misprobes of unpacked Koala and Run Paint |
16 if (len > 30 && | 16 if (len > 30 && |
17 len != 10006 && | 17 len != 10006 && |
18 len != 10003 && | 18 len != 10003 && |
19 dmCompareAddr16(buf, 0, fmt->addr)) | 19 dmCompareAddr16(buf, 0, fmt->addr)) |
20 return DM_PROBE_SCORE_MAX; | 20 return DM_PROBE_SCORE_GOOD; |
21 | 21 |
22 return DM_PROBE_SCORE_FALSE; | 22 return DM_PROBE_SCORE_FALSE; |
23 } | 23 } |
24 | 24 |
25 | 25 |
348 | 348 |
349 static int fmtProbeFLIDesigner(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) | 349 static int fmtProbeFLIDesigner(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) |
350 { | 350 { |
351 if (len == fmt->size && | 351 if (len == fmt->size && |
352 (dmCompareAddr16(buf, 0, 0x3c00) || dmCompareAddr16(buf, 0, 0x3ff0))) | 352 (dmCompareAddr16(buf, 0, 0x3c00) || dmCompareAddr16(buf, 0, 0x3ff0))) |
353 return DM_PROBE_SCORE_MAX; | 353 return DM_PROBE_SCORE_GOOD; |
354 | 354 |
355 return DM_PROBE_SCORE_FALSE; | 355 return DM_PROBE_SCORE_FALSE; |
356 } | 356 } |
357 | 357 |
358 | 358 |