The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Config hierarchy

From Allegro Wiki
Jump to: navigation, search
This article is a stub. Please help Allegro by expanding it.


This means settings should come from:

  • Application's exe directory (./.allegrorc, .\allegro.cfg, Bundle's resource directory)
  • User's home (~/.allegrorc, %MYPROFILE%\allegro.cfg, ~/Library/Application Support)
  • System default (/etc/allegrorc, ?, /Library/Application Support)

(suggested Unix, Windows and OS X directories in brackets)

Would this be too complicated?

No, sounds like a good idea to me. Angelo wanted to implement the config system, probably it will be quite similiar to this: http://alleg.sourceforge.net/future/allegro_configuration_routines.txt Your concern seems to be if hierarchical overriding will be possible.. that's not handled by that document, but I think it makes sense. EP

This was discussed on AD a while ago. [This thread] is partly relevant but I can't find the main discussion that I remember.PH