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