Hardcode LWJGL 2.9.1 for OneSix, only allow chancging Minecraft versions for now.
This commit is contained in:
parent
84ae67fff5
commit
223a7aba7b
@ -368,4 +368,12 @@ void VersionPage::versionCurrent(const QModelIndex ¤t, 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user