diff --git a/apps/launcher/CMakeLists.txt b/apps/launcher/CMakeLists.txt index 7343aae10a..00a50679cc 100644 --- a/apps/launcher/CMakeLists.txt +++ b/apps/launcher/CMakeLists.txt @@ -10,8 +10,6 @@ set(LAUNCHER maindialog.hpp playpage.hpp combobox.hpp - - ../openmw/path.cpp ) set(MOC_HDRS @@ -22,8 +20,6 @@ set(MOC_HDRS combobox.hpp ) -source_group(apps\\launcher FILES ${ESMTOOL}) - find_package(Qt4 REQUIRED) set(QT_USE_QTGUI 1) @@ -36,6 +32,7 @@ include(${QT_USE_FILE}) add_executable(launcher ${LAUNCHER} ${MISC} ${MISC_HEADER} + ${FILES} ${FILES_HEADER} ${TO_UTF8} ${ESM} ${RCC_SRCS} diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index dbed73b539..1b98087e95 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -3,7 +3,7 @@ #include // TODO: Remove #include -#include "../openmw/path.hpp" +#include #include "datafilespage.hpp" #include "lineedit.hpp" @@ -195,7 +195,7 @@ void DataFilesPage::setupConfig() qDebug() << "Using config file from current directory"; mLauncherConfig = new QSettings("launcher.cfg", QSettings::IniFormat); } else { - QString path = QString::fromStdString(OMW::Path::getPath(OMW::Path::GLOBAL_CFG_PATH, + QString path = QString::fromStdString(Files::getPath(Files::Path_ConfigGlobal, "openmw", "launcher.cfg")); qDebug() << "Using global config file from " << path; diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 5ba5168a9f..669c9e019f 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -103,8 +103,6 @@ void MainDialog::createIcons() QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget); queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png")); - QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget); - queryButton->setIcon(QIcon(":resources/openmw-plugin-icon.png")); queryButton->setText(tr("Data Files")); queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom); queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);