On Wed, 2011-05-04 at 23:45 +0100, Chris Young wrote:
Hi John-Mark
I notice there are still a few CONTENT_SVGs hanging around in my
platform code, so it won't compile immediately.
Hm. It does for me. Do you have local configuration changes? If so,
could you please default the build options for the amiga frontend to
whatever you do use?
Unless there's an easier way I guess I need to add some magic to
check the MIME type of the content and then do a reverse lookup to
check if it is SVG? (I handle SVGs differently in a few places so
they end up on the clipboard or export as DR2D (vector) instead of
ILBM (bitmap))
That sounds about right.
Something like content_type_name(mimetype) which returns an
arbitrary
type string (human-readable filetype) could be useful for doing
reverse lookups, or simple filetyping for file extensions etc on saves
for platforms that need that.
I think it's best left up to the frontends to perform this mapping. The
core is (should be!) only concerned with MIME types.
J.