[Opensim-dev] Ini file(s) loading
MW
michaelwri22 at yahoo.co.uk
Wed Mar 4 21:46:31 UTC 2009
Last week, I added the ability for opensim to search a folder for ini files and load (and merge together) all of those files.
By default it will look for the folder 'bin\config' and search that for .ini files. The folder it searches can be changed by using the command line argument -inidirectory=<path>.
So now our ini loading is a three step process:
Step 1: If the -inimaster=<filepath or url> command line argument was used, load that file/url.
Step 2: Then check if the config directory (default 'bin\config' or one set by -inidirectory=<path>) exists and search that folder for ini files and load them. They are merged on top of the inimaster file. So any duplicate entries will be overwrote.
Step 3: Load the inifile, which by default is 'bin\opensim.ini' but can be changed by using the -inifile=<filepath or url> command line argument. This again is merged on top of all previous settings so will overwrite the older (from previous steps) settings.
Now the question is how we should set things up in SVN as the default. It would be nice to split up the opensim.ini, into multiple ini files in the config directory. And then just have a small opensim.ini that contains the values likely to change ofter, like network settings etc.
But because the config directory overwrites the master file, this could cause problems for people who have already set things up for using a master file/url. Of course the simple solution for them would be just to delete the config directory.
But anyway what does everyone think?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090304/2b65049b/attachment-0001.html>
More information about the Opensim-dev
mailing list