aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/AuthSession.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
commit91eb30f03795921b48360b79bdb739dcd0f10f17 (patch)
tree1a2fccbbbf4751cf2cf6f6418cb525dcee5f2acd /launcher/minecraft/auth/AuthSession.cpp
parenta3ffa6455021b69bd1940b65fefb3b6177c96730 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.gz
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.bz2
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into pack_changelog
Diffstat (limited to 'launcher/minecraft/auth/AuthSession.cpp')
-rw-r--r--launcher/minecraft/auth/AuthSession.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/launcher/minecraft/auth/AuthSession.cpp b/launcher/minecraft/auth/AuthSession.cpp
index 6bea74a3..37534f98 100644
--- a/launcher/minecraft/auth/AuthSession.cpp
+++ b/launcher/minecraft/auth/AuthSession.cpp
@@ -1,7 +1,7 @@
#include "AuthSession.h"
-#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
+#include <QJsonObject>
#include <QStringList>
QString AuthSession::serializeUserProperties()
@@ -16,22 +16,22 @@ QString AuthSession::serializeUserProperties()
*/
QJsonDocument value(userAttrs);
return value.toJson(QJsonDocument::Compact);
-
}
bool AuthSession::MakeOffline(QString offline_playername)
{
- if (status != PlayableOffline && status != PlayableOnline)
- {
+ if (status != PlayableOffline && status != PlayableOnline) {
return false;
}
session = "-";
+ access_token = "0";
player_name = offline_playername;
status = PlayableOffline;
return true;
}
-void AuthSession::MakeDemo() {
+void AuthSession::MakeDemo()
+{
player_name = "Player";
demo = true;
}