1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 12:47:44 +00:00
astra/launcher/core/include/squarelauncher.h

27 lines
534 B
C
Raw Normal View History

2021-11-01 09:54:58 -04:00
#pragma once
#include "launchercore.h"
#include "patcher.h"
2021-11-01 09:54:58 -04:00
class SquareLauncher : public QObject {
Q_OBJECT
2021-11-01 09:54:58 -04:00
public:
2022-09-05 17:26:26 -04:00
explicit SquareLauncher(LauncherCore& window);
2021-11-01 09:54:58 -04:00
void getStored(const LoginInformation& info);
void login(const LoginInformation& info, const QUrl& referer);
2021-11-01 09:54:58 -04:00
void registerSession(const LoginInformation& info);
private:
QString getBootHash(const LoginInformation& info);
2021-11-01 09:54:58 -04:00
Patcher* patcher = nullptr;
QString stored, SID, username;
2021-11-01 09:54:58 -04:00
LoginAuth auth;
LauncherCore& window;
};