diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-08-01 20:05:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-08-01 20:05:18 +0200 |
commit | 6cee50eac6c25796eb3642239385b0c58860cd58 (patch) | |
tree | 61a0d5ff2ee5cae58458630fe815321648f26f54 /application | |
parent | 9cc93ae81db9990594c012529001a069f584ee6c (diff) | |
download | MultiMC-6cee50eac6c25796eb3642239385b0c58860cd58.tar MultiMC-6cee50eac6c25796eb3642239385b0c58860cd58.tar.gz MultiMC-6cee50eac6c25796eb3642239385b0c58860cd58.tar.lz MultiMC-6cee50eac6c25796eb3642239385b0c58860cd58.tar.xz MultiMC-6cee50eac6c25796eb3642239385b0c58860cd58.zip |
NOISSUE gate new mods page behind cheat code
Diffstat (limited to 'application')
-rw-r--r-- | application/InstancePageProvider.h | 22 | ||||
-rw-r--r-- | application/MainWindow.cpp | 1 |
2 files changed, 15 insertions, 8 deletions
diff --git a/application/InstancePageProvider.h b/application/InstancePageProvider.h index 94013101..ae279d94 100644 --- a/application/InstancePageProvider.h +++ b/application/InstancePageProvider.h @@ -18,6 +18,7 @@ #include "pages/instance/WorldListPage.h" #include "pages/instance/ServersPage.h" +#include "Env.h" class InstancePageProvider : public QObject, public BasePageProvider { @@ -37,14 +38,19 @@ public: if(onesix) { values.append(new VersionPage(onesix.get())); - auto modsPage = new ModFolderPage(onesix.get(), onesix->loaderModList(), "mods", "loadermods", tr("Loader mods"), "Loader-mods"); - modsPage->setFilter("%1 (*.zip *.jar *.litemod)"); - values.append(modsPage); - /* - auto modsPage2 = new NewModFolderPage(onesix.get(), onesix->modsModel(), "mods", "mods", tr("Mods"), "Mods"); - modsPage2->setFilter("%1 (*.zip *.jar *.litemod)"); - values.append(modsPage2); - */ + if(ENV.isFeatureEnabled("NewModsPage")) + { + auto modsPage = new NewModFolderPage(onesix.get(), onesix->modsModel(), "mods", "loadermods", tr("Mods"), "Mods-page"); + modsPage->setFilter("%1 (*.zip *.jar *.litemod)"); + values.append(modsPage); + } + else + { + auto modsPage = new ModFolderPage(onesix.get(), onesix->loaderModList(), "mods", "loadermods", tr("Loader mods"), "Loader-mods"); + modsPage->setFilter("%1 (*.zip *.jar *.litemod)"); + values.append(modsPage); + } + values.append(new CoreModFolderPage(onesix.get(), onesix->coreModList(), "coremods", "coremods", tr("Core mods"), "Core-mods")); values.append(new ResourcePackPage(onesix.get())); values.append(new TexturePackPage(onesix.get())); diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 883b38f9..4085f2bc 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -823,6 +823,7 @@ MainWindow::~MainWindow() void MainWindow::konamiTriggered() { + ENV.enableFeature("NewModsPage"); qDebug() << "Super Secret Mode ACTIVATED!"; } |