diff --git a/abstractmodels.cpp b/abstractmodels.cpp index f989283..7b72f7c 100644 --- a/abstractmodels.cpp +++ b/abstractmodels.cpp @@ -132,8 +132,12 @@ QString EngineListModel::addEngine(QFileInfo file) else if (file.baseName().compare( QString("doomretro"), Qt::CaseInsensitive) == 0) { return updateEngine("Doom Retro", file.absoluteFilePath(), Engine_Default, Pic_Retro, true); + else if (file.baseName().compare( QString("chex3" || "chex"), Qt::CaseInsensitive) == 0) + { + return updateEngine("Chex Quest", file.absoluteFilePath(), Engine_ChexQuest, Pic_ChexQuest, true); } else if (file.baseName().left(6).compare(QString("dosbox"), Qt::CaseInsensitive) == 0) + { setupDosbox(file.absoluteFilePath()); return "Success"; @@ -322,6 +326,7 @@ void EngineListModel::setDoomExe() || n.left(5).compare("hexen", Qt::CaseInsensitive) == 0 || n.left(6).compare("strife", Qt::CaseInsensitive) == 0 || n.left(4).compare("chex", Qt::CaseInsensitive) == 0 + || n.left(4).compare("chex3", Qt::CaseInsensitive) == 0 || n.left(4).compare("hacx", Qt::CaseInsensitive) == 0 ) { QMessageBox::information(NULL, "Original Exectuble Set" , QString("iD executable set to %1").arg(n)); diff --git a/enginesetup.cpp b/enginesetup.cpp index 121cf4c..38b3d2c 100644 --- a/enginesetup.cpp +++ b/enginesetup.cpp @@ -104,6 +104,8 @@ void RocketLauncher2::on_listbox_engines_clicked(const QModelIndex &index) ui->combo_EngPic->setCurrentText("Vavoom"); else if (pic == Pic_Doomsday) ui->combo_EngPic->setCurrentText("Doomsday"); + else if (pic == Pic_ChexQuest) + ui->combo_EngPic->setCurrentText("Chex Quest"); } @@ -163,8 +165,7 @@ void RocketLauncher2::on_combo_EngType_currentTextChanged(const QString &arg1) else if (arg1 == "Oldschool") enginelist->setTypeFromIndex(Engine_Oldschool, index); else if (arg1 == "ZDoom") - enginelist->setTypeFromIndex(Engine_ZDoom, index); -} + enginelist->setTypeFromIndex(Engine_ZDoom, index)); void RocketLauncher2::on_combo_EngPic_currentTextChanged(const QString &arg1) { @@ -200,6 +201,8 @@ void RocketLauncher2::on_combo_EngPic_currentTextChanged(const QString &arg1) enginelist->setPicFromIndex(Pic_ZDaemon, index); else if (arg1 == "Zdoom") enginelist->setPicFromIndex(Pic_Zdoom, index); + else if (arg1 == "Chex Quest") + enginelist->setPicFromIndex(Pic_ChexQuest, index); SetEnginePic(enginelist->getCurrentEngine()->EngineImage); } diff --git a/img/chexlogo.png b/img/chexlogo.png new file mode 100644 index 0000000..f80f909 Binary files /dev/null and b/img/chexlogo.png differ diff --git a/rocketlauncher2.cpp b/rocketlauncher2.cpp index d899390..9537a47 100644 --- a/rocketlauncher2.cpp +++ b/rocketlauncher2.cpp @@ -111,6 +111,7 @@ void RocketLauncher2::initPixmaps() enginepics->append((QPixmap(":/engine/img/retrologo.png").scaled(105,105,Qt::KeepAspectRatio))); //11 RetroDoom enginepics->append((QPixmap(":/engine/img/vavoom2.png").scaled(105,105,Qt::KeepAspectRatio))); //12 Vavoom enginepics->append((QPixmap(":/engine/img/ddlogo.png").scaled(105,105,Qt::KeepAspectRatio))); //13 DoomsDay + enginepics->append((QPixmap(":/engine/img/chexlogo.png").scaled(105,105,Qt::KeepAspectRatio))); //14 Chex Quest ui->img_engine->setPixmap(enginepics->at(0)); } @@ -511,6 +512,8 @@ void RocketLauncher2::SetEnginePic(EnginePic pic) ui->img_engine->setPixmap(enginepics->at(12)); else if (pic == Pic_Doomsday) ui->img_engine->setPixmap(enginepics->at(13)); + else if (pic == Pic_ChexQuest) + ui->img_engine->setPixmap(enginepics->at(13)); }