Extract native libs in the launcher part.

This commit is contained in:
Petr Mrázek
2014-01-22 02:20:09 +01:00
parent b182f12c20
commit c46c508fc6
5 changed files with 137 additions and 49 deletions

View File

@ -228,6 +228,11 @@ MinecraftProcess *OneSixInstance::prepareForLaunch(MojangAccountPtr account)
}
QDir natives_dir(PathCombine(instanceRoot(), "natives/"));
launchScript += "windowTitle " + windowTitle() + "\n";
for(auto native: version->getActiveNativeLibs())
{
QFileInfo finfo(PathCombine("libraries", native->storagePath()));
launchScript += "ext " + finfo.absoluteFilePath() + "\n";
}
launchScript += "natives " + natives_dir.absolutePath() + "\n";
launchScript += "launch onesix\n";

View File

@ -349,11 +349,6 @@ void OneSixUpdate::prepareForLaunch()
return;
}
/*
* emitFailed("Could not create the native library folder:\n" + natives_dir_raw +
"\nMake sure MultiMC has appropriate permissions and there is enough
space "
"on the storage device.");
*/
for (auto lib : version->getActiveNativeLibs())
{
if (!lib->filesExist())
@ -372,6 +367,6 @@ void OneSixUpdate::prepareForLaunch()
return;
}
}
*/
emitSucceeded();
}