Extract native libs in the launcher part.
This commit is contained in:
@ -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";
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user