From 40cb70b845686236a6e7c73bc6e5f242cbb35da8 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 24 Feb 2020 15:33:19 +0000 Subject: netsurf_init: Use disc_cache_path if specified, otherwise platform path Signed-off-by: Daniel Silverstone --- desktop/netsurf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 7577e1ff8..547365b7c 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -164,7 +164,10 @@ nserror netsurf_init(const char *store_path) hlcache_parameters.llcache.store.hysteresis = (hlcache_parameters.llcache.store.limit * 20) / 100;; /* set the path to the backing store */ - hlcache_parameters.llcache.store.path = store_path; + hlcache_parameters.llcache.store.path = + nsoption_charp(disc_cache_path) ? + nsoption_charp(disc_cache_path) : + store_path; /* image handler bitmap cache */ ret = image_cache_init(&image_cache_parameters); -- cgit v1.2.3