QTfrontend/main.cpp
changeset 6237 a66029015c18
parent 6197 4ce7c29799b9
child 6238 b344159da248
equal deleted inserted replaced
6235:bb1a657f751b 6237:a66029015c18
    28 #include <QStringListModel>
    28 #include <QStringListModel>
    29 
    29 
    30 #include "hwform.h"
    30 #include "hwform.h"
    31 #include "hwconsts.h"
    31 #include "hwconsts.h"
    32 
    32 
       
    33 //#include "HWConfigManager.h"
    33 #include "HWDataManager.h"
    34 #include "HWDataManager.h"
    34 
    35 
    35 #ifdef _WIN32
    36 #ifdef _WIN32
    36 #include <Shlobj.h>
    37 #include <Shlobj.h>
    37 #endif
    38 #endif
   151         checkForDir(cfgdir->absolutePath() + "/Demos");
   152         checkForDir(cfgdir->absolutePath() + "/Demos");
   152         checkForDir(cfgdir->absolutePath() + "/Saves");
   153         checkForDir(cfgdir->absolutePath() + "/Saves");
   153         checkForDir(cfgdir->absolutePath() + "/Screenshots");
   154         checkForDir(cfgdir->absolutePath() + "/Screenshots");
   154         checkForDir(cfgdir->absolutePath() + "/Teams");
   155         checkForDir(cfgdir->absolutePath() + "/Teams");
   155         checkForDir(cfgdir->absolutePath() + "/Logs");
   156         checkForDir(cfgdir->absolutePath() + "/Logs");
       
   157         checkForDir(cfgdir->absolutePath() + "/Profiles");
   156     }
   158     }
   157 
   159 
   158     datadir->cd(bindir->absolutePath());
   160     datadir->cd(bindir->absolutePath());
   159     datadir->cd(*cDataDir);
   161     datadir->cd(*cDataDir);
   160     if(!datadir->cd("hedgewars/Data")) {
   162     if(!datadir->cd("hedgewars/Data")) {
   163                     "Please check your installation").
   165                     "Please check your installation").
   164                     arg(datadir->absolutePath()+"/hedgewars/Data"));
   166                     arg(datadir->absolutePath()+"/hedgewars/Data"));
   165         return 1;
   167         return 1;
   166     }
   168     }
   167 
   169 
       
   170 
       
   171     /*HWConfigManager & cfgMgr = HWConfigManager::instance();
       
   172     cfgMgr.setPath(cfgdir->absolutePath());*/
   168     HWDataManager & dataMgr = HWDataManager::instance();
   173     HWDataManager & dataMgr = HWDataManager::instance();
   169 
   174 
   170     {
   175     {
   171         QStringList themes;
   176         QStringList themes;
   172 
   177