Mercurial > hg > dmlib
diff tools/lib64fmts.c @ 2161:6a6344f8f535
Add support for one more Art Studio hires variant.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Jun 2019 23:46:01 +0300 |
parents | 44d7e8e2483c |
children | 1e7d80bfc8f1 |
line wrap: on
line diff
--- a/tools/lib64fmts.c Tue Jun 04 17:54:12 2019 +0300 +++ b/tools/lib64fmts.c Mon Jun 10 23:46:01 2019 +0300 @@ -271,6 +271,16 @@ } +static int fmtProbeArtStudio(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) +{ + if ((buf->len == fmt->size || buf->len == 9002) && + dmCompareAddr16(buf, 0, 0x2000)) + return DM_PROBE_SCORE_MAX; + + return DM_PROBE_SCORE_FALSE; +} + + static int fmtDecodeStaticRLEMarkerMode2(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt) { int res; @@ -1934,7 +1944,7 @@ { "art", "Art Studio (unpacked)", 0x2000, 9009, DM_FMT_RDWR, - NULL, + fmtProbeArtStudio, NULL, NULL, { }, &dmC64CommonFormats[2] },