Search user data dir first for resources

svn path=/trunk/netsurf/; revision=13779
This commit is contained in:
Chris Young 2012-03-30 19:28:37 +00:00
parent e30905be75
commit e8d90a532a

View File

@ -291,7 +291,13 @@ bool ami_locate_resource(char *fullpath, const char *file)
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))