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/gamemap.py

    r614 r627  
    1717 
    1818from fife import fife 
     19 
    1920from local_loaders.loaders import loadMapFile 
    20 from fife.extensions.fife_settings import Setting 
     21from scripts.common.utils import loadSettings 
    2122 
    22 TDS = Setting(app_name="PARPG", 
    23               settings_file="./settings.xml",  
    24               settings_gui_xml="") 
     23 
     24Settings = loadSettings() 
    2525 
    2626class GameMap(fife.MapChangeListener): 
     
    117117        text = self.engine.getGuiManager().\ 
    118118                        createFont('fonts/rpgfont.png', 0, \ 
    119                                    TDS.get("FIFE", "FontGlyphs")) 
     119                                   Settings.get("FIFE", "FontGlyphs")) 
    120120        rend.changeDefaultFont(text) 
    121121        rend.activateAllLayers(self.map) 
Note: See TracChangeset for help on using the changeset viewer.