diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-12 17:55:10 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-12 17:55:10 +0200 |
commit | 432e812da188f96ad7038772171944a49225371d (patch) | |
tree | b7340e191eae4683410bbb24b4d8325620555235 /logic | |
parent | d5aee5fd233927b6a0cf36148218fe9a9c4aee00 (diff) | |
download | PrismLauncher-432e812da188f96ad7038772171944a49225371d.tar.gz PrismLauncher-432e812da188f96ad7038772171944a49225371d.tar.bz2 PrismLauncher-432e812da188f96ad7038772171944a49225371d.zip |
GH-1275 create server-resource-packs folder on launch
This is a workaround for Minecraft bug MCL-3732
Diffstat (limited to 'logic')
-rw-r--r-- | logic/launch/steps/LaunchMinecraft.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/logic/launch/steps/LaunchMinecraft.cpp b/logic/launch/steps/LaunchMinecraft.cpp index 3d75f5f2..0cbf5f3a 100644 --- a/logic/launch/steps/LaunchMinecraft.cpp +++ b/logic/launch/steps/LaunchMinecraft.cpp @@ -31,6 +31,12 @@ void LaunchMinecraft::executeTask() std::shared_ptr<MinecraftInstance> minecraftInstance = std::dynamic_pointer_cast<MinecraftInstance>(instance); QStringList args = minecraftInstance->javaArguments(); + // HACK: this is a workaround for MCL-3732 - 'server-resource-packs' is created. + if(!FS::ensureFolderPathExists(FS::PathCombine(minecraftInstance->minecraftRoot(), "server-resource-packs"))) + { + emit logLine(tr("Couldn't create the 'server-resource-packs' folder"), MessageLevel::Error); + } + QString allArgs = args.join(", "); emit logLine("Java Arguments:\n[" + m_parent->censorPrivateInfo(allArgs) + "]\n\n", MessageLevel::MultiMC); |