comparison 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
comparison
equal deleted inserted replaced
2160:0b9315070001 2161:6a6344f8f535
264 264
265 // Unpacked variant 265 // Unpacked variant
266 if (fmt->size != 0xfe && buf->len == fmt->size) 266 if (fmt->size != 0xfe && buf->len == fmt->size)
267 return DM_PROBE_SCORE_MAX; 267 return DM_PROBE_SCORE_MAX;
268 } 268 }
269
270 return DM_PROBE_SCORE_FALSE;
271 }
272
273
274 static int fmtProbeArtStudio(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
275 {
276 if ((buf->len == fmt->size || buf->len == 9002) &&
277 dmCompareAddr16(buf, 0, 0x2000))
278 return DM_PROBE_SCORE_MAX;
269 279
270 return DM_PROBE_SCORE_FALSE; 280 return DM_PROBE_SCORE_FALSE;
271 } 281 }
272 282
273 283
1932 { }, &dmC64CommonFormats[0] 1942 { }, &dmC64CommonFormats[0]
1933 }, 1943 },
1934 1944
1935 { 1945 {
1936 "art", "Art Studio (unpacked)", 0x2000, 9009, DM_FMT_RDWR, 1946 "art", "Art Studio (unpacked)", 0x2000, 9009, DM_FMT_RDWR,
1937 NULL, 1947 fmtProbeArtStudio,
1938 NULL, NULL, 1948 NULL, NULL,
1939 { }, &dmC64CommonFormats[2] 1949 { }, &dmC64CommonFormats[2]
1940 }, 1950 },
1941 1951
1942 { 1952 {