NOISSUE Remove hardcoded LWJGL (modern)

This commit is contained in:
Petr Mrázek
2017-03-12 20:08:56 +01:00
parent 2980322c3b
commit f6eb8fa1e4
8 changed files with 2 additions and 198 deletions

View File

@ -121,12 +121,8 @@ void OneSixProfileStrategy::loadDefaultBuiltinPatches()
}
else
{
// NOTE: this is obviously fake, is fixed in unstable.
QResource LWJGL(":/versions/LWJGL/2.9.1.json");
auto lwjgl = ProfileUtils::parseJsonFile(LWJGL.absoluteFilePath(), false);
lwjgl->setVanilla(true);
lwjgl->setCustomizable(true);
lwjglPatch = std::dynamic_pointer_cast<ProfilePatch>(lwjgl);
auto lwjglversion = ENV.getVersion("org.lwjgl", "2.9.1" /*m_instance->intendedVersionId()*/);
lwjglPatch = std::dynamic_pointer_cast<ProfilePatch>(lwjglversion);
}
if (!lwjglPatch)
{