pineapple/src/yuzu/compatdb.h

44 lines
873 B
C
Raw Normal View History

2022-07-27 20:06:50 +02:00
// SPDX-FileCopyrightText: 2017 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 16:15:37 +01:00
#pragma once
#include <memory>
#include <QFutureWatcher>
#include <QWizard>
2021-10-09 02:29:53 +02:00
#include "core/telemetry_session.h"
2020-12-28 16:15:37 +01:00
namespace Ui {
class CompatDB;
}
2022-10-31 23:08:56 +01:00
enum class CompatibilityStatus {
Perfect = 0,
Playable = 1,
// Unused: Okay = 2,
Ingame = 3,
IntroMenu = 4,
WontBoot = 5,
};
2020-12-28 16:15:37 +01:00
class CompatDB : public QWizard {
Q_OBJECT
public:
2021-10-09 02:29:53 +02:00
explicit CompatDB(Core::TelemetrySession& telemetry_session_, QWidget* parent = nullptr);
2020-12-28 16:15:37 +01:00
~CompatDB();
2022-10-31 23:08:56 +01:00
int nextId() const override;
2020-12-28 16:15:37 +01:00
private:
QFutureWatcher<bool> testcase_watcher;
std::unique_ptr<Ui::CompatDB> ui;
void Submit();
2022-10-31 23:08:56 +01:00
CompatibilityStatus CalculateCompatibility() const;
2020-12-28 16:15:37 +01:00
void OnTestcaseSubmitted();
void EnableNext();
2021-10-09 02:29:53 +02:00
Core::TelemetrySession& telemetry_session;
2020-12-28 16:15:37 +01:00
};