GH-4217 Add support for GamePass accounts and MC profile setup
- We now use the new endpoint for loggiong in via XBox tokens (/launcher/login) - We now check game entitlements instead of only relying on MC profile presence - Accounts can now be added even when they do not have a profile - The launcher will guide you through selecting a Minecraft name if you don't have one yet
This commit is contained in:
19
launcher/minecraft/auth/flows/Parsers.h
Normal file
19
launcher/minecraft/auth/flows/Parsers.h
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "minecraft/auth/AccountData.h"
|
||||
|
||||
namespace Parsers
|
||||
{
|
||||
bool getDateTime(QJsonValue value, QDateTime & out);
|
||||
bool getString(QJsonValue value, QString & out);
|
||||
bool getNumber(QJsonValue value, double & out);
|
||||
bool getNumber(QJsonValue value, int64_t & out);
|
||||
bool getBool(QJsonValue value, bool & out);
|
||||
|
||||
bool parseXTokenResponse(QByteArray &data, Katabasis::Token &output, const char * name);
|
||||
bool parseMojangResponse(QByteArray &data, Katabasis::Token &output);
|
||||
|
||||
bool parseMinecraftProfile(QByteArray &data, MinecraftProfile &output);
|
||||
bool parseMinecraftEntitlements(QByteArray &data, MinecraftEntitlement &output);
|
||||
bool parseRolloutResponse(QByteArray &data, bool& result);
|
||||
}
|
Reference in New Issue
Block a user