summaryrefslogtreecommitdiffstats
path: root/application/InstancePageProvider.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-12 23:43:11 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-12 23:43:11 +0200
commit5bbe1c7132f3fd4c6850519e045f378e114ada50 (patch)
tree9c98c31070108f2117943266600a06a20a6e5e25 /application/InstancePageProvider.h
parentbd1a28d8639c0deb7afa5d1a895389f5fb980db0 (diff)
downloadMultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.gz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.lz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.xz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.zip
GH-951 add .litemod to mod browse dialog
Diffstat (limited to 'application/InstancePageProvider.h')
-rw-r--r--application/InstancePageProvider.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/application/InstancePageProvider.h b/application/InstancePageProvider.h
index 9cc97c4a..99f69706 100644
--- a/application/InstancePageProvider.h
+++ b/application/InstancePageProvider.h
@@ -32,10 +32,10 @@ public:
if(onesix)
{
values.append(new VersionPage(onesix.get()));
- values.append(new ModFolderPage(onesix.get(), onesix->loaderModList(), "mods", "loadermods",
- tr("Loader mods"), "Loader-mods"));
- values.append(new CoreModFolderPage(onesix.get(), onesix->coreModList(), "coremods", "coremods",
- tr("Core mods"), "Core-mods"));
+ auto modsPage = new ModFolderPage(onesix.get(), onesix->loaderModList(), "mods", "loadermods", tr("Loader mods"), "Loader-mods");
+ modsPage->setFilter(tr("%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()));
values.append(new NotesPage(onesix.get()));
@@ -50,10 +50,10 @@ public:
// FIXME: actually implement the legacy instance upgrade, then enable this.
//values.append(new LegacyUpgradePage(this));
values.append(new LegacyJarModPage(legacy.get()));
- values.append(new ModFolderPage(legacy.get(), legacy->loaderModList(), "mods", "loadermods", tr("Loader mods"),
- "Loader-mods"));
- values.append(new ModFolderPage(legacy.get(), legacy->coreModList(), "coremods", "coremods", tr("Core mods"),
- "Loader-mods"));
+ auto modsPage = new ModFolderPage(onesix.get(), onesix->loaderModList(), "mods", "loadermods", tr("Loader mods"), "Loader-mods");
+ modsPage->setFilter(tr("%1 (*.zip *.jar *.litemod)"));
+ values.append(modsPage);
+ values.append(new ModFolderPage(legacy.get(), legacy->coreModList(), "coremods", "coremods", tr("Core mods"), "Loader-mods"));
values.append(new TexturePackPage(legacy.get()));
values.append(new NotesPage(legacy.get()));
values.append(new ScreenshotsPage(PathCombine(legacy->minecraftRoot(), "screenshots")));