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.
This commit is contained in:
parent
d7113de3bd
commit
ffbc5bb62c
27 changed files with 417 additions and 278 deletions
|
@ -78,9 +78,9 @@ public:
|
|||
|
||||
void killMinecraft();
|
||||
|
||||
inline void setLogin(MojangAccountPtr account)
|
||||
inline void setLogin(AuthSessionPtr session)
|
||||
{
|
||||
m_account = account;
|
||||
m_session = session;
|
||||
}
|
||||
|
||||
signals:
|
||||
|
@ -117,7 +117,7 @@ protected:
|
|||
QString m_out_leftover;
|
||||
QProcess m_prepostlaunchprocess;
|
||||
bool killed = false;
|
||||
MojangAccountPtr m_account;
|
||||
AuthSessionPtr m_session;
|
||||
QString launchScript;
|
||||
QString m_nativeFolder;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue