NOISSUE Add back Legacy for migration purposes

This commit is contained in:
Petr Mrázek
2017-09-16 23:09:05 +02:00
parent b2b0487600
commit 9a6c2b0e2c
14 changed files with 821 additions and 4 deletions

View File

@ -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)
{