Ejemplo n.º 1
0
def path(parent):
    while not validatePath(util.settings.value("ForgedAlliance/app/path", "", type=str)):
        logger.warn("Invalid game path: " + util.settings.value("ForgedAlliance/app/path", "", type=str))
        wizard = Wizard(parent)
        result = wizard.exec_()
        if result == QtGui.QWizard.Rejected:
            return False

    logger.info("Writing fa_path.lua config file.")
    writeFAPathLua()
Ejemplo n.º 2
0
 def validatePage(self, *args, **kwargs):
     if validatePath(self.comboBox.currentText()):
         return True
     else:
         return False