Author: cazfi
Date: Fri Sep 18 19:02:04 2015
New Revision: 29922

URL: http://svn.gna.org/viewcvs/freeciv?rev=29922&view=rev
Log:
Store client options to freeciv storage dir.

See patch #6346

Modified:
    trunk/client/options.c

Modified: trunk/client/options.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/options.c?rev=29922&r1=29921&r2=29922&view=diff
==============================================================================
--- trunk/client/options.c      (original)
+++ trunk/client/options.c      Fri Sep 18 19:02:04 2015
@@ -4749,8 +4749,8 @@
 /****************************************************************
   Returns pointer to static memory containing name of the current
   option file.  Usually used for saving.
-  Ie, based on FREECIV_OPT env var, and home dir. (or a
-  OPTION_FILE_NAME define defined in fc_config.h)
+  Ie, based on FREECIV_OPT env var, and freeciv storage root dir.
+  (or a OPTION_FILE_NAME define defined in fc_config.h)
   Or NULL if problem.
 *****************************************************************/
 static const char *get_current_option_file_name(void)
@@ -4766,9 +4766,9 @@
 #ifdef OPTION_FILE_NAME
     fc_strlcpy(name_buffer, OPTION_FILE_NAME, sizeof(name_buffer));
 #else
-    name = user_home_dir();
+    name = freeciv_home_dir();
     if (!name) {
-      log_error(_("Cannot find your home directory"));
+      log_error(_("Cannot find freeciv storage directory"));
       return NULL;
     }
     fc_snprintf(name_buffer, sizeof(name_buffer),


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to