equal
deleted
inserted
replaced
92 else if (depth > 16) depth = 32; |
92 else if (depth > 16) depth = 32; |
93 } |
93 } |
94 |
94 |
95 QStringList GameUIConfig::GetTeamsList() |
95 QStringList GameUIConfig::GetTeamsList() |
96 { |
96 { |
97 QStringList teamslist = cfgdir->entryList(QStringList("*.cfg")); |
97 QDir teamdir; |
|
98 teamdir.cd(cfgdir->absolutePath() + "/Teams"); |
|
99 QStringList teamslist = teamdir.entryList(QStringList("*.ini")); |
98 QStringList cleanedList; |
100 QStringList cleanedList; |
99 for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
101 for (QStringList::Iterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
100 QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.cfg$"), "\\1"); |
102 QString tmpTeamStr=(*it).replace(QRegExp("^(.*)\\.ini$"), "\\1"); |
101 cleanedList.push_back(tmpTeamStr); |
103 cleanedList.push_back(tmpTeamStr); |
102 } |
104 } |
103 return cleanedList; |
105 return cleanedList; |
104 } |
106 } |
105 |
107 |