QTfrontend/gamecfgwidget.cpp
changeset 5238 46ddaf14509d
parent 5026 e83d4552625f
child 5352 7f57d0c7816a
--- a/QTfrontend/gamecfgwidget.cpp	Sun Jun 12 14:45:26 2011 -0400
+++ b/QTfrontend/gamecfgwidget.cpp	Sun Jun 12 21:06:48 2011 -0400
@@ -61,7 +61,9 @@
         QString script = (*scriptList)[i].remove(".lua", Qt::CaseInsensitive);
         QList<QVariant> scriptInfo;
         scriptInfo.push_back(script);
-        QFile scriptCfgFile(QString("%1/Scripts/Multiplayer/%2.cfg").arg(datadir->absolutePath()).arg(script));
+        QFile scriptCfgFile;
+        scriptCfgFile.setFileName(QString("%1/Data/Scripts/Multiplayer/%2.cfg").arg(cfgdir->absolutePath()).arg(script));
+        if (!scriptCfgFile.exists()) scriptCfgFile.setFileName(QString("%1/Scripts/Multiplayer/%2.cfg").arg(datadir->absolutePath()).arg(script));
         if (scriptCfgFile.exists() && scriptCfgFile.open(QFile::ReadOnly)) {
             QString scheme;
             QString weapons;