diff options
author | Shokara <shokara@snopyta.org> | 2021-01-04 20:05:46 -0500 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2021-01-04 17:14:35 -0800 |
commit | 21da6d89658aef25c1def27dc5fa2c4055e6a6f9 (patch) | |
tree | 1cf5e3774d0820f30eee3265f49c282061591999 /api/logic/minecraft/auth/MojangAccount.h | |
parent | b57d6e6353a3048a4052201bf2a56bea00d94b0a (diff) | |
download | MultiMC-tom.tar MultiMC-tom.tar.gz MultiMC-tom.tar.lz MultiMC-tom.tar.xz MultiMC-tom.zip |
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.h | 3 |
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); |