equal
deleted
inserted
replaced
209 return 1; |
209 return 1; |
210 } |
210 } |
211 |
211 |
212 DataManager & dataMgr = DataManager::instance(); |
212 DataManager & dataMgr = DataManager::instance(); |
213 |
213 |
214 scriptList = new QStringList(dataMgr.entryList( |
|
215 QString("Scripts/Multiplayer"), |
|
216 QDir::Files, |
|
217 QStringList("*.lua") |
|
218 ) |
|
219 ); |
|
220 |
|
221 QTranslator Translator; |
214 QTranslator Translator; |
222 { |
215 { |
223 QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
216 QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
224 QString cc = settings.value("misc/locale", QString()).toString(); |
217 QString cc = settings.value("misc/locale", QString()).toString(); |
225 if(cc.isEmpty()) |
218 if(cc.isEmpty()) |