aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/AuthSession.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-04 19:42:36 +0200
committerGitHub <noreply@github.com>2023-08-04 19:42:36 +0200
commitae793f6cf11658c9abc5111e82d5ba7b3e6af127 (patch)
treeed41f30e2c0f02e4be1d42324b3f05fbab75b2cd /launcher/minecraft/auth/AuthSession.cpp
parent50c7d39e082f0a7dbd977401e16d5adf534d9770 (diff)
parent1d638e018ac40fbfb35dd117f9a948c0cf35eadd (diff)
downloadPrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.gz
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.tar.bz2
PrismLauncher-ae793f6cf11658c9abc5111e82d5ba7b3e6af127.zip
Merge pull request #1459 from Scrumplex/format
Diffstat (limited to 'launcher/minecraft/auth/AuthSession.cpp')
-rw-r--r--launcher/minecraft/auth/AuthSession.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/launcher/minecraft/auth/AuthSession.cpp b/launcher/minecraft/auth/AuthSession.cpp
index 2c06beaa..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,13 +16,11 @@ 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 = "-";
@@ -32,7 +30,8 @@ bool AuthSession::MakeOffline(QString offline_playername)
return true;
}
-void AuthSession::MakeDemo() {
+void AuthSession::MakeDemo()
+{
player_name = "Player";
demo = true;
}