r13779 chris_y - /trunk/netsurf/amiga/gui.c

netsurf at semichrome.net netsurf at semichrome.net
Fri Mar 30 20:28:37 BST 2012


Author: chris_y
Date: Fri Mar 30 14:28:37 2012
New Revision: 13779

URL: http://source.netsurf-browser.org?rev=13779&view=rev
Log:
Search user data dir first for resources

Modified:
    trunk/netsurf/amiga/gui.c

Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=13779&r1=13778&r2=13779&view=diff
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Fri Mar 30 14:28:37 2012
@@ -291,7 +291,13 @@
 	bool found = false;
 	char *remapped;
 
-	/* Firstly check the user's selected theme.  NB: ami_locate_resource()
+	/* Check NetSurf user data area first */
+
+	strcpy(fullpath, current_user_dir);
+	found = ami_gui_check_resource(fullpath, file);
+	if(found) return true;
+
+	/* Secondly check the user's selected theme.  NB: ami_locate_resource()
 	 * gets called for Messages before options are loaded */
 
 	if(nsoption_charp(theme))




More information about the netsurf-commits mailing list