# HG changeset patch # User Matti Hamalainen # Date 1560199561 -10800 # Node ID 6a6344f8f535b2d4b5663d6baca3fdc939539845 # Parent 0b93150700016d4ea06de68f27c93529754ca0d5 Add support for one more Art Studio hires variant. diff -r 0b9315070001 -r 6a6344f8f535 tools/lib64fmts.c --- 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] },