QTfrontend/ui/widget/gamecfgwidget.cpp
changeset 6930 d187ea93fc4f
parent 6744 7a4db08d291d
child 6952 7f70f37bbf08
equal deleted inserted replaced
6929:c305d31642ac 6930:d187ea93fc4f
    26 #include <QTableView>
    26 #include <QTableView>
    27 #include <QPushButton>
    27 #include <QPushButton>
    28 
    28 
    29 #include "gamecfgwidget.h"
    29 #include "gamecfgwidget.h"
    30 #include "igbox.h"
    30 #include "igbox.h"
    31 #include "HWDataManager.h"
    31 #include "DataManager.h"
    32 #include "hwconsts.h"
    32 #include "hwconsts.h"
    33 #include "ammoSchemeModel.h"
    33 #include "ammoSchemeModel.h"
    34 #include "proto.h"
    34 #include "proto.h"
    35 
    35 
    36 GameCFGWidget::GameCFGWidget(QWidget* parent) :
    36 GameCFGWidget::GameCFGWidget(QWidget* parent) :
    62     for (int i = 0; i < scriptList->size(); ++i)
    62     for (int i = 0; i < scriptList->size(); ++i)
    63     {
    63     {
    64         QString script = (*scriptList)[i].remove(".lua", Qt::CaseInsensitive);
    64         QString script = (*scriptList)[i].remove(".lua", Qt::CaseInsensitive);
    65         QList<QVariant> scriptInfo;
    65         QList<QVariant> scriptInfo;
    66         scriptInfo.push_back(script);
    66         scriptInfo.push_back(script);
    67         QFile scriptCfgFile(HWDataManager::instance().findFileForRead(
    67         QFile scriptCfgFile(DataManager::instance().findFileForRead(
    68                                 QString("Scripts/Multiplayer/%2.cfg").arg(script)));
    68                                 QString("Scripts/Multiplayer/%2.cfg").arg(script)));
    69         if (scriptCfgFile.exists() && scriptCfgFile.open(QFile::ReadOnly))
    69         if (scriptCfgFile.exists() && scriptCfgFile.open(QFile::ReadOnly))
    70         {
    70         {
    71             QString scheme;
    71             QString scheme;
    72             QString weapons;
    72             QString weapons;