QTfrontend/main.cpp
changeset 6958 8230a516ba93
parent 6952 7f70f37bbf08
child 7130 fcab1fd02bc6
equal deleted inserted replaced
6957:ab8034208fcd 6958:8230a516ba93
   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())