diff options
author | Andrew <forkk@forkk.net> | 2013-11-20 18:31:15 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-11-20 18:31:15 -0600 |
commit | abf8408911c057d8aafe90790f5d2f5de0e1d97c (patch) | |
tree | b6b77a485702c0a7ac45b5b96d6b8b0f41c14af7 /logic/lists/MojangAccountList.cpp | |
parent | 03652b01d2ec8a7c54fb39dd8ed660f0bbc2fa2a (diff) | |
download | MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.gz MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.lz MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.xz MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.zip |
Nuke and pave the old login system
Also, account list now saves profile lists.
Diffstat (limited to 'logic/lists/MojangAccountList.cpp')
-rw-r--r-- | logic/lists/MojangAccountList.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/logic/lists/MojangAccountList.cpp b/logic/lists/MojangAccountList.cpp index 68a4da18..32317f84 100644 --- a/logic/lists/MojangAccountList.cpp +++ b/logic/lists/MojangAccountList.cpp @@ -185,7 +185,7 @@ bool MojangAccountList::loadList(const QString& filePath) // TODO: We should probably report this error to the user. if (!file.open(QIODevice::ReadOnly)) { - QLOG_ERROR() << "Failed to read the account list file (" << path << ")."; + QLOG_ERROR() << QString("Failed to read the account list file (%1).").arg(path).toUtf8(); return false; } @@ -217,9 +217,9 @@ bool MojangAccountList::loadList(const QString& filePath) // Make sure the format version matches. if (root.value("formatVersion").toVariant().toInt() != ACCOUNT_LIST_FORMAT_VERSION) { - QString newName = "accountlist-old.json"; - QLOG_WARN() << "Format version mismatch when loading account list. Existing one will be renamed to \"" - << newName << "\"."; + QString newName = "accounts-old.json"; + QLOG_WARN() << "Format version mismatch when loading account list. Existing one will be renamed to" + << newName; // Attempt to rename the old version. file.rename(newName); @@ -257,7 +257,7 @@ bool MojangAccountList::saveList(const QString& filePath) return false; } - QLOG_INFO() << "Writing account list to \"" << path << "\"..."; + QLOG_INFO() << "Writing account list to" << path; QLOG_DEBUG() << "Building JSON data structure."; // Build the JSON document to write to the list file. @@ -289,7 +289,7 @@ bool MojangAccountList::saveList(const QString& filePath) // TODO: We should probably report this error to the user. if (!file.open(QIODevice::WriteOnly)) { - QLOG_ERROR() << "Failed to read the account list file (" << path << ")."; + QLOG_ERROR() << QString("Failed to read the account list file (%1).").arg(path).toUtf8(); return false; } @@ -297,7 +297,7 @@ bool MojangAccountList::saveList(const QString& filePath) file.write(doc.toJson()); file.close(); - QLOG_INFO() << "Saved account list to \"" << path << "\"."; + QLOG_INFO() << "Saved account list to" << path; return true; } |