Follow-up Comment #11, bug #14603 (project freeciv):

The attached patch splits the FREECIV_PATH in many others:
* FREECIV_DATA_PATH (default ".:data:~/.freeciv/2.3:$datadir/freeciv")
* FREECIV_SAVE_PATH (default ".:~/.freeciv/saves")
* FREECIV_SCENARIO_PATH (default
".:data/scenario:~/.freeciv/scenarios:$datadir/freeciv/scenario")

If one of the environment variable is not set, it will use FREECIV_PATH
instead (default ".:data:~/.freeciv:~/.freeciv/2.3:$datadir/freeciv"). 
Getting the save path or the scenario path from FREECIV_PATH will extend all
dirs with "saves", "scenario" and "scenarios" suffixes.

Renamed the interface of datafile* to fileinfo*.  Every of this function
takes as first argument get_data_dirs(), get_save_dirs() or
get_scenario_dirs().  Also add constant flag to returned values which
shouldn't be modified or freed.


(file #7163)
    _______________________________________________________

Additional Item Attachment:

File name: trunk_data_save_scenario_path.diff.bz2 Size:12 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14603>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to