QTfrontend/team.cpp
branchflibqtfrontend
changeset 8126 5bfa1b2025d6
parent 8106 861d145b270e
parent 8098 4efee370e2de
child 8128 ebef2de30c18
--- a/QTfrontend/team.cpp	Mon Nov 26 00:06:42 2012 +0400
+++ b/QTfrontend/team.cpp	Mon Nov 26 00:09:54 2012 +0400
@@ -162,14 +162,14 @@
     if(m_team)
         flib_team_destroy(m_team);
 
-    m_team = flib_team_from_ini(QString("/config/Teams/%1.hwt").arg(name).toUtf8().data());
+    m_team = flib_team_from_ini(QString("/Teams/%1.hwt").arg(name).toUtf8().data());
 
     return m_team != NULL;
 }
 
 bool HWTeam::fileExists()
 {
-    QFile f(QString("physfs://config/Teams/%1.hwt").arg(name()));
+    QFile f(QString("physfs://Teams/%1.hwt").arg(name()));
     return f.exists();
 }
 
@@ -178,7 +178,7 @@
     if(m_team->remoteDriven)
         return false;
 
-    QFile cfgfile(QString("physfs://config/Teams/%1.hwt").arg(name()));
+    QFile cfgfile(QString("physfs://Teams/%1.hwt").arg(name()));
     cfgfile.remove();
     return true;
 }
@@ -187,12 +187,12 @@
 {
     if (m_oldTeamName != name())
     {
-        QFile cfgfile(QString("physfs://config/Teams/%1.hwt").arg(m_oldTeamName));
+        QFile cfgfile(QString("physfs://Teams/%1.hwt").arg(m_oldTeamName));
         cfgfile.remove();
         m_oldTeamName = name();
     }
 
-    return flib_team_to_ini(QString("physfs://config/Teams/%1.hwt").arg(name()).toUtf8(), m_team) == 0;
+    return flib_team_to_ini(QString("physfs://Teams/%1.hwt").arg(name()).toUtf8(), m_team) == 0;
 }