From 1f1fe78c17da956739061eee22fc91d6e40fb85a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 9 May 2011 22:11:18 +0000 Subject: New style MIME typing; maps MIME types to DataTypes and DefIcon format names. Currently only able to resolve DataTypes to MIME Types. TODO: - DT MIME type guessing needs mostly removing (only use if no matches in mimetypes file) - Migrate the rest of filetype.c to the new format (can filetype using icon.library and reverse lookup MIME type, for example) - Use to distinguish between CONTENT_IMAGE types - Simplify so DefIcon type defaults to lowercase DataType name svn path=/trunk/netsurf/; revision=12360 --- amiga/gui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 630b7b1ff..80847cbcd 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -58,6 +58,7 @@ #include "amiga/misc.h" #include "amiga/options.h" #include "amiga/plotters.h" +#include "amiga/plugin_hack.h" #include "amiga/print.h" #include "amiga/schedule.h" #include "amiga/search.h" @@ -751,9 +752,11 @@ int main(int argc, char** argv) if(ami_locate_resource(messages, "Messages") == false) die("Cannot open Messages file"); + ami_mime_init("PROGDIR:Resources/mimetypes"); ami_schedule_open_timer(); ami_schedule_create(); + amiga_plugin_hack_init(); amiga_datatypes_init(); netsurf_init(&argc, &argv, "PROGDIR:Resources/Options", messages); @@ -777,9 +780,12 @@ int main(int argc, char** argv) netsurf_exit(); + amiga_plugin_hack_fini(); amiga_datatypes_fini(); amiga_icon_fini(); + ami_mime_free(); + return 0; } -- cgit v1.2.3