diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-03-30 19:28:37 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-03-30 19:28:37 +0000 |
commit | e8d90a532a313ba02146614d7ec7cce2ce97ab3f (patch) | |
tree | 96c8ee2948013d1db84176dcc720a0f71bdc650f | |
parent | e30905be7505fc4ba7f01d496b59d56a6411431a (diff) | |
download | netsurf-e8d90a532a313ba02146614d7ec7cce2ce97ab3f.tar.gz netsurf-e8d90a532a313ba02146614d7ec7cce2ce97ab3f.tar.bz2 |
Search user data dir first for resources
svn path=/trunk/netsurf/; revision=13779
-rwxr-xr-x | amiga/gui.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index e5d4fbe5f..edf7cbaac 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -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)) |