QTfrontend/main.cpp
changeset 4513 1dd97c710f5a
parent 3932 2fc211f60015
child 4888 3c96e99468c5
equal deleted inserted replaced
4512:c6aff8ceada0 4513:1dd97c710f5a
   397     tmpdir.cd(datadir->absolutePath());
   397     tmpdir.cd(datadir->absolutePath());
   398     tmpdir.cd("Maps");
   398     tmpdir.cd("Maps");
   399     tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
   399     tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
   400     mapList = new QStringList(tmpdir.entryList(QStringList("*")));
   400     mapList = new QStringList(tmpdir.entryList(QStringList("*")));
   401 
   401 
       
   402     tmpdir.cd(datadir->absolutePath());
       
   403     tmpdir.cd("Scripts/Multiplayer");
       
   404     tmpdir.setFilter(QDir::Files | QDir::NoDotAndDotDot);
       
   405     scriptList = new QStringList(tmpdir.entryList(QStringList("*.lua")));
       
   406 
   402 
   407 
   403     QTranslator Translator;
   408     QTranslator Translator;
   404     {
   409     {
   405         QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
   410         QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
   406         QString cc = settings.value("misc/locale", "").toString();
   411         QString cc = settings.value("misc/locale", "").toString();