chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
ce2ca13815
commit
1d468ac35a
594 changed files with 16040 additions and 16536 deletions
|
@ -34,11 +34,10 @@
|
|||
*/
|
||||
|
||||
#include "FoldersTask.h"
|
||||
#include "minecraft/MinecraftInstance.h"
|
||||
#include <QDir>
|
||||
#include "minecraft/MinecraftInstance.h"
|
||||
|
||||
FoldersTask::FoldersTask(MinecraftInstance * inst)
|
||||
:Task()
|
||||
FoldersTask::FoldersTask(MinecraftInstance* inst) : Task()
|
||||
{
|
||||
m_inst = inst;
|
||||
}
|
||||
|
@ -47,8 +46,7 @@ void FoldersTask::executeTask()
|
|||
{
|
||||
// Make directories
|
||||
QDir mcDir(m_inst->gameRoot());
|
||||
if (!mcDir.exists() && !mcDir.mkpath("."))
|
||||
{
|
||||
if (!mcDir.exists() && !mcDir.mkpath(".")) {
|
||||
emitFailed(tr("Failed to create folder for Minecraft binaries."));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue