Hardcode LWJGL 2.9.1 for OneSix, only allow chancging Minecraft versions for now.

This commit is contained in:
Petr Mrázek 2014-06-08 19:01:19 +02:00
parent 84ae67fff5
commit 223a7aba7b
2 changed files with 10 additions and 1 deletions

View File

@ -368,4 +368,12 @@ void VersionPage::versionCurrent(const QModelIndex &current, const QModelIndex &
ui->moveLibraryDownBtn->setEnabled(enabled); ui->moveLibraryDownBtn->setEnabled(enabled);
ui->moveLibraryUpBtn->setEnabled(enabled); ui->moveLibraryUpBtn->setEnabled(enabled);
} }
if(m_version->versionFileId(current.row()) == "net.minecraft")
{
ui->changeMCVersionBtn->setEnabled(true);
}
else
{
ui->changeMCVersionBtn->setEnabled(false);
}
} }

View File

@ -185,7 +185,8 @@ void VersionBuilder::buildFromMultilayer()
minecraftPatch->setOrder(-2); minecraftPatch->setOrder(-2);
m_version->VersionPatches.append(minecraftPatch); m_version->VersionPatches.append(minecraftPatch);
QResource LWJGL(":/versions/LWJGL/2.9.0.json"); // TODO: this is obviously fake.
QResource LWJGL(":/versions/LWJGL/2.9.1.json");
auto lwjgl = parseJsonFile(LWJGL.absoluteFilePath(), false, false); auto lwjgl = parseJsonFile(LWJGL.absoluteFilePath(), false, false);
auto lwjglPatch = std::dynamic_pointer_cast<VersionPatch>(lwjgl); auto lwjglPatch = std::dynamic_pointer_cast<VersionPatch>(lwjgl);
if (!lwjglPatch) if (!lwjglPatch)