diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-01-27 03:00:49 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-01-27 03:00:49 +0100 |
commit | ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4 (patch) | |
tree | 78b10cee3dc25acba02954aaf4f0e44ee4c295de /logic/auth/flows/RefreshTask.cpp | |
parent | d7113de3bd3cb43b1bc68792cd27a716b012f2b5 (diff) | |
download | MultiMC-ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4.tar MultiMC-ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4.tar.gz MultiMC-ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4.tar.lz MultiMC-ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4.tar.xz MultiMC-ffbc5bb62c0cd771b26cb1d9b5afdccef77075b4.zip |
Offline mode can be used even when online.
Allow the user to pick a player name for offline mode.
Big auth refactor. Now using session objects instead of the accounts themselves.
Sessions only last for one instance start and hold all the auth and player data.
Diffstat (limited to 'logic/auth/flows/RefreshTask.cpp')
-rw-r--r-- | logic/auth/flows/RefreshTask.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/logic/auth/flows/RefreshTask.cpp b/logic/auth/flows/RefreshTask.cpp index f63c736e..5a55ed91 100644 --- a/logic/auth/flows/RefreshTask.cpp +++ b/logic/auth/flows/RefreshTask.cpp @@ -25,8 +25,7 @@ #include "logger/QsLog.h" -RefreshTask::RefreshTask(MojangAccount *account, QObject *parent) - : YggdrasilTask(account, parent) +RefreshTask::RefreshTask(MojangAccount *account) : YggdrasilTask(account) { } @@ -126,7 +125,6 @@ bool RefreshTask::processResponse(QJsonObject responseData) m_account->m_user = u; } - // We've made it through the minefield of possible errors. Return true to indicate that // we've succeeded. QLOG_DEBUG() << "Finished reading refresh response."; |