Ignore:
Timestamp:
08/06/10 08:45:53 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Added SettingsVersion? to settings. This contains the version (currently a date of the last change) of the settings. The version will be checked with the version in settings-dist.xml and if the versions don't match the settings.xml file will be renamed to settings-old.xml. The version string has to be set manually when editing settings-dist.xml.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/common/utils.py

    r563 r627  
    4141        for filename in fnmatch.filter(files, pattern): 
    4242            yield os.path.join(path, filename) 
     43 
     44def loadSettings(settings_file = "./settings.xml"): 
     45    from fife.extensions.fife_settings import Setting 
     46    return Setting(app_name = "PARPG", 
     47                   settings_file = settings_file,  
     48                   settings_gui_xml = "")   
Note: See TracChangeset for help on using the changeset viewer.