summaryrefslogtreecommitdiffstats
path: root/application/InstancePageProvider.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-16 23:09:05 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-17 19:24:39 +0200
commit9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b (patch)
tree962cbb167d58cc022ceb4d7bbc4e3b4e00a5849f /application/InstancePageProvider.h
parentb2b04876009400c04658d9b986b86d3edeb3b51a (diff)
downloadMultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.gz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.lz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.tar.xz
MultiMC-9a6c2b0e2c0a4fb9f26b9c9d1137a66d7977251b.zip
NOISSUE Add back Legacy for migration purposes
Diffstat (limited to 'application/InstancePageProvider.h')
-rw-r--r--application/InstancePageProvider.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/InstancePageProvider.h b/application/InstancePageProvider.h
index ac5306c0..3b361e3e 100644
--- a/application/InstancePageProvider.h
+++ b/application/InstancePageProvider.h
@@ -1,5 +1,6 @@
#pragma once
#include "minecraft/MinecraftInstance.h"
+#include "minecraft/legacy/LegacyInstance.h"
#include <FileSystem.h>
#include "pages/BasePage.h"
#include "pages/LogPage.h"
@@ -12,6 +13,7 @@
#include "pages/InstanceSettingsPage.h"
#include "pages/OtherLogsPage.h"
#include "pages/BasePageProvider.h"
+#include "pages/LegacyUpgradePage.h"
#include "pages/WorldListPage.h"
@@ -44,6 +46,11 @@ public:
values.append(new ScreenshotsPage(FS::PathCombine(onesix->minecraftRoot(), "screenshots")));
values.append(new InstanceSettingsPage(onesix.get()));
}
+ std::shared_ptr<LegacyInstance> legacy = std::dynamic_pointer_cast<LegacyInstance>(inst);
+ if(legacy)
+ {
+ values.append(new LegacyUpgradePage(legacy.get()));
+ }
auto logMatcher = inst->getLogFileMatcher();
if(logMatcher)
{