2023-08-05 22:14:05 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-07-30 08:49:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
2023-09-16 18:52:12 -04:00
|
|
|
#include <qcorotask.h>
|
|
|
|
|
2023-07-30 08:49:34 -04:00
|
|
|
#include "patcher.h"
|
|
|
|
|
|
|
|
class SquareLauncher;
|
|
|
|
class LauncherCore;
|
|
|
|
class LoginInformation;
|
|
|
|
|
|
|
|
class SquareBoot : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2023-09-17 08:32:47 -04:00
|
|
|
|
2023-07-30 08:49:34 -04:00
|
|
|
public:
|
|
|
|
SquareBoot(LauncherCore &window, SquareLauncher &launcher, QObject *parent = nullptr);
|
|
|
|
|
2023-09-17 18:43:58 -04:00
|
|
|
QCoro::Task<> checkGateStatus(const LoginInformation &info);
|
2023-07-30 08:49:34 -04:00
|
|
|
|
2023-09-17 18:43:58 -04:00
|
|
|
private:
|
2023-09-16 18:52:12 -04:00
|
|
|
QCoro::Task<> bootCheck(const LoginInformation &info);
|
2023-07-30 08:49:34 -04:00
|
|
|
|
|
|
|
Patcher *patcher = nullptr;
|
|
|
|
|
|
|
|
LauncherCore &window;
|
|
|
|
SquareLauncher &launcher;
|
|
|
|
};
|