From 6a9a8d6127e3fd677dc8ad28d14b4d84b3dfdc40 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 9 Jul 2016 01:07:18 +0100 Subject: Move current user options path to an abstracted nsoptions_read/write function --- frontends/amiga/gui_options.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'frontends/amiga/gui_options.c') diff --git a/frontends/amiga/gui_options.c b/frontends/amiga/gui_options.c index 21067fb40..2b1b7c944 100755 --- a/frontends/amiga/gui_options.c +++ b/frontends/amiga/gui_options.c @@ -74,6 +74,7 @@ #include "amiga/help.h" #include "amiga/libs.h" #include "amiga/misc.h" +#include "amiga/nsoption.h" #include "amiga/object.h" #include "amiga/selectmenu.h" #include "amiga/theme.h" @@ -233,8 +234,6 @@ struct ami_gui_opts_window { #endif }; -char *current_user_options = NULL; - static struct ami_gui_opts_window *gow = NULL; static CONST_STRPTR tabs[OPTS_MAX_TABS]; @@ -2057,7 +2056,7 @@ static void ami_gui_opts_use(bool save) } if(save == true) { - nsoption_write(current_user_options, NULL, NULL); + ami_nsoption_write(); ami_font_savescanner(); /* just in case it has changed and been used only */ } -- cgit v1.2.3