summaryrefslogtreecommitdiffstats
path: root/application/InstancePageProvider.h
diff options
context:
space:
mode:
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)
{