GH-3392 dirty initial MSA support that shares logic with Mojang flows
Both act as the first step of AuthContext.
This commit is contained in:
14
launcher/minecraft/auth/flows/MojangRefresh.cpp
Normal file
14
launcher/minecraft/auth/flows/MojangRefresh.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include "MojangRefresh.h"
|
||||
|
||||
MojangRefresh::MojangRefresh(AccountData* data, QObject* parent) : AuthContext(data, parent) {}
|
||||
|
||||
void MojangRefresh::executeTask() {
|
||||
m_requestsDone = 0;
|
||||
m_xboxProfileSucceeded = false;
|
||||
m_mcAuthSucceeded = false;
|
||||
|
||||
initMojang();
|
||||
|
||||
beginActivity(Katabasis::Activity::Refreshing);
|
||||
m_yggdrasil->refresh();
|
||||
}
|
Reference in New Issue
Block a user