Merge branch 'testing' of https://github.com/02JanDal/MultiMC5 into develop
Conflicts: MultiMC.cpp
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include <QJsonArray>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonParseError>
|
||||
#include <QDir>
|
||||
|
||||
#include "logger/QsLog.h"
|
||||
|
||||
@ -264,6 +265,11 @@ bool MojangAccountList::loadList(const QString &filePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!QDir::current().exists(path))
|
||||
{
|
||||
QDir::current().mkpath(path);
|
||||
}
|
||||
|
||||
QFile file(path);
|
||||
|
||||
// Try to open the file and fail if we can't.
|
||||
@ -345,6 +351,11 @@ bool MojangAccountList::saveList(const QString &filePath)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!QDir::current().exists(path))
|
||||
{
|
||||
QDir::current().mkpath(path);
|
||||
}
|
||||
|
||||
QLOG_INFO() << "Writing account list to" << path;
|
||||
|
||||
QLOG_DEBUG() << "Building JSON data structure.";
|
||||
|
Reference in New Issue
Block a user