mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-26 02:25:03 +00:00
* Dehardcode account providers * Fix crash on creation * Add dynamic 'add account dialog' provider selector * Fix typo and add newlines * Rename loginType to provider * Rename MojangAccount to Account and MojangAccountList to AccountList * Fix json save error
27 lines
586 B
C++
27 lines
586 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include "QObjectPtr.h"
|
|
#include <QDateTime>
|
|
#include <QSet>
|
|
#include <QProcess>
|
|
#include <QDebug>
|
|
|
|
#include "BaseAuthProvider.h"
|
|
|
|
class ElybyAuthProvider : public BaseAuthProvider
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QString id()
|
|
{
|
|
return "elyby";
|
|
}
|
|
|
|
QString displayName() { return "Ely.by"; };
|
|
QString injectorEndpoint() { return "ely.by"; };
|
|
QString authEndpoint() { return "https://authserver.ely.by/auth/"; };
|
|
QUrl resolveSkinUrl(AccountProfile profile) { return QUrl(((QString) "http://skinsystem.ely.by/skins/%1.png").arg(profile.name)); }
|
|
};
|