diff options
Diffstat (limited to 'api/logic/minecraft/onesix/update/FoldersTask.cpp')
-rw-r--r-- | api/logic/minecraft/onesix/update/FoldersTask.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/api/logic/minecraft/onesix/update/FoldersTask.cpp b/api/logic/minecraft/onesix/update/FoldersTask.cpp deleted file mode 100644 index d478560c..00000000 --- a/api/logic/minecraft/onesix/update/FoldersTask.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "FoldersTask.h" -#include "minecraft/onesix/OneSixInstance.h" -#include <QDir> - -FoldersTask::FoldersTask(OneSixInstance * inst) - :Task() -{ - m_inst = inst; -} - -void FoldersTask::executeTask() -{ - // Make directories - QDir mcDir(m_inst->minecraftRoot()); - if (!mcDir.exists() && !mcDir.mkpath(".")) - { - emitFailed(tr("Failed to create folder for minecraft binaries.")); - return; - } - emitSucceeded(); -} |