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.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/amiga/gui.c') diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 9e57bc780..815ffb7fd 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -776,7 +776,7 @@ static void ami_openscreen(void) id = screenmodereq->sm_DisplayID; sprintf(modeid, "0x%lx", id); nsoption_set_charp(screen_modeid, modeid); - nsoption_write(current_user_options, NULL, NULL); + ami_nsoption_write(); } FreeAslRequest(screenmodereq); } @@ -5643,7 +5643,7 @@ int main(int argc, char** argv) if((lock = CreateDirTree(current_user_dir))) UnLock(lock); - current_user_options = ASPrintf("%s/Choices", current_user_dir); + ami_nsoption_set_location(current_user_dir); current_user_cache = ASPrintf("%s/Cache", current_user_dir); current_user_faviconcache = ASPrintf("%s/IconCache", current_user_dir); @@ -5672,7 +5672,7 @@ int main(int argc, char** argv) ami_libs_close(); return RETURN_FAIL; } - nsoption_read(current_user_options, NULL); + ami_nsoption_read(); if(args != NULL) { nsoption_commandline(&nargc, &nargv, NULL); FreeArgs(args); @@ -5742,7 +5742,7 @@ int main(int argc, char** argv) netsurf_exit(); - FreeVec(current_user_options); + ami_nsoption_free(); FreeVec(current_user_dir); FreeVec(current_user_faviconcache); FreeVec(current_user); -- cgit v1.2.3