-- axeld@xxxxxxxxxxxxxxxx, on Fri, 27 Nov 2009 08:56:41 +0100 (CET): > Added: > haiku/trunk/src/data/beos_mime/image/x-pcx > Log: > * Added MIME type for PCX images based on humdinger's patch for > ticket #5045. > * Improved sniffer rule is not tested, but might work :-) > > > Added: haiku/trunk/src/data/beos_mime/image/x-pcx > =================================================================== > --- haiku/trunk/src/data/beos_mime/image/x-pcx > (rev 0) > +++ haiku/trunk/src/data/beos_mime/image/x-pcx 2009-11-27 07:56:41 > UTC (rev 34301) > @@ -0,0 +1,15 @@ > +resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; > + > +resource(1, "META:TYPE") "image/x-pcx"; > + > +resource(2, "META:SNIFF_RULE") "0.5 (\"\\012\\005\\001\") [3](0x01 | > 0x04 | 0x08)"; > + // version 5, encoding 1 is all our translator currently > supports Thanks! I didn't really get the priority setting and was just about trying to grok what's in sniffer's Parser.h... :) I was wondering: Even if it's not supported by the translator, shouldn't non-version 5 PCX still be recognized as image/x-pcx? They are still PCX images. If the translator can't handle the version, it should say so. Regards, Humdinger -- --=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=- Deutsche Haiku News @ http://www.haiku-gazette.de