From 51c5f7f142ef7afe396541da9397cb7f87af73e0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 1 Jun 2015 11:52:41 +0100 Subject: Set the default cache size on RISC OS to zero (off) --- riscos/gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/riscos/gui.c b/riscos/gui.c index cad5a6e16..3a47d088b 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -305,10 +305,15 @@ static nserror set_defaults(struct nsoption_s *defaults) if (nsoption_charp(ca_bundle) == NULL || nsoption_charp(cookie_file) == NULL || nsoption_charp(cookie_jar) == NULL) { - LOG("Failed initialising string options"); + LOG("Failed initialising default options"); return NSERROR_BAD_PARAMETER; } + /* RISC OS platform does not generally benefit from disc cache + * so the default should be off. + */ + nsoption_set_uint(disc_cache_size, 0); + /* set default system colours for riscos ui */ set_colour_from_wimp(defaults, wimp_COLOUR_BLACK, NSOPTION_sys_colour_ActiveBorder, 0x00000000); set_colour_from_wimp(defaults, wimp_COLOUR_CREAM, NSOPTION_sys_colour_ActiveCaption, 0x00dddddd); -- cgit v1.2.3