Ignore:
Timestamp:
04/04/11 16:51:28 (8 years ago)
Author:
aspidites
Message:

Patch by Aspidites: Game now loads if launched from a different directory. Just need to remove relative paths from xml files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/parpg/gui/menus.py

    r818 r833  
    1414#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>. 
    1515 
     16import os 
    1617import logging 
    1718 
     
    9697        self.sound = self.settings.fife.EnableSound 
    9798 
    98         self.window = pychan.loadXML('gui/settings_menu.xml') 
    99         self.restart_dialog = RestartDialog() 
     99        self.window = pychan.loadXML(os.path.join(self.settings.system_path, 
     100                                                 self.settings.parpg.GuiPath, 
     101                                                 'settings_menu.xml')) 
     102        self.restart_dialog = RestartDialog(self.settings) 
    100103        self.window.mapEvents({'okButton': self.save, 
    101104                               'cancelButton': self.hide, 
Note: See TracChangeset for help on using the changeset viewer.