summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/auth/MojangAccount.h
diff options
context:
space:
mode:
authorShokara <shokara@snopyta.org>2021-01-04 20:05:46 -0500
committerThomas Groman <tgroman@nuegia.net>2021-01-04 17:14:35 -0800
commit21da6d89658aef25c1def27dc5fa2c4055e6a6f9 (patch)
tree1cf5e3774d0820f30eee3265f49c282061591999 /api/logic/minecraft/auth/MojangAccount.h
parentb57d6e6353a3048a4052201bf2a56bea00d94b0a (diff)
downloadMultiMC-tom.tar
MultiMC-tom.tar.gz
MultiMC-tom.tar.lz
MultiMC-tom.tar.xz
MultiMC-tom.zip
add offline account supportHEADtom
I added the offline patch from my MultiMC repo[1]. The only change I made compared to my fork was adding an extra sentence in the account adder dialog that the password needs to be blank for an offline account. Signed-off-by: Shokara <shokara@snopyta.org>
Diffstat (limited to 'api/logic/minecraft/auth/MojangAccount.h')
-rw-r--r--api/logic/minecraft/auth/MojangAccount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/logic/minecraft/auth/MojangAccount.h b/api/logic/minecraft/auth/MojangAccount.h
index 7006435e..92679076 100644
--- a/api/logic/minecraft/auth/MojangAccount.h
+++ b/api/logic/minecraft/auth/MojangAccount.h
@@ -77,6 +77,9 @@ public: /* construction */
//! Creates an empty account for the specified user name.
static MojangAccountPtr createFromUsername(const QString &username);
+ //! Creates an offline account for the specified user name.
+ static MojangAccountPtr createFromUsernameOffline(const QString &username);
+
//! Loads a MojangAccount from the given JSON object.
static MojangAccountPtr loadFromJson(const QJsonObject &json);