mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 21:15:19 +00:00
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
#include "Mojang.h"
|
|
|
|
#include "minecraft/auth/steps/YggdrasilStep.h"
|
|
#include "minecraft/auth/steps/MinecraftProfileStep.h"
|
|
#include "minecraft/auth/steps/ForcedMigrationStep.h"
|
|
#include "minecraft/auth/steps/MigrationEligibilityStep.h"
|
|
#include "minecraft/auth/steps/GetSkinStep.h"
|
|
|
|
MojangRefresh::MojangRefresh(
|
|
AccountData *data,
|
|
QObject *parent
|
|
) : AuthFlow(data, parent) {
|
|
m_steps.append(new YggdrasilStep(m_data, QString()));
|
|
m_steps.append(new ForcedMigrationStep(m_data));
|
|
m_steps.append(new MinecraftProfileStep(m_data));
|
|
m_steps.append(new MigrationEligibilityStep(m_data));
|
|
m_steps.append(new GetSkinStep(m_data));
|
|
}
|
|
|
|
MojangLogin::MojangLogin(
|
|
AccountData *data,
|
|
QString password,
|
|
QObject *parent
|
|
): AuthFlow(data, parent), m_password(password) {
|
|
m_steps.append(new YggdrasilStep(m_data, m_password));
|
|
m_steps.append(new ForcedMigrationStep(m_data));
|
|
m_steps.append(new MinecraftProfileStep(m_data));
|
|
m_steps.append(new MigrationEligibilityStep(m_data));
|
|
m_steps.append(new GetSkinStep(m_data));
|
|
}
|