diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-12 11:06:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 11:06:37 -0500 |
| commit | 15bebf1695246c85852835b0fae58d795626dc39 (patch) | |
| tree | 03de654621e65cb185b2a2e3511f71b933b005ef /src/yuzu/applets/qt_profile_select.h | |
| parent | 5c840334b8c1fae4e54986768a46e46a350b6318 (diff) | |
| parent | a22a025c5bd579d782225cafba1b56896d22e4cd (diff) | |
Merge pull request #12328 from german77/profile_manager
core: Use single instance of profile manager
Diffstat (limited to 'src/yuzu/applets/qt_profile_select.h')
| -rw-r--r-- | src/yuzu/applets/qt_profile_select.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/yuzu/applets/qt_profile_select.h b/src/yuzu/applets/qt_profile_select.h index 99056e274..607f1777c 100644 --- a/src/yuzu/applets/qt_profile_select.h +++ b/src/yuzu/applets/qt_profile_select.h @@ -7,7 +7,6 @@ #include <QDialog> #include <QList> #include "core/frontend/applets/profile_select.h" -#include "core/hle/service/acc/profile_manager.h" class ControllerNavigation; class GMainWindow; @@ -20,15 +19,19 @@ class QStandardItemModel; class QTreeView; class QVBoxLayout; -namespace Core::HID { -class HIDCore; -} // namespace Core::HID +namespace Core { +class System; +} + +namespace Service::Account { +class ProfileManager; +} class QtProfileSelectionDialog final : public QDialog { Q_OBJECT public: - explicit QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent, + explicit QtProfileSelectionDialog(Core::System& system, QWidget* parent, const Core::Frontend::ProfileSelectParameters& parameters); ~QtProfileSelectionDialog() override; @@ -58,7 +61,7 @@ private: QScrollArea* scroll_area; QDialogButtonBox* buttons; - std::unique_ptr<Service::Account::ProfileManager> profile_manager; + Service::Account::ProfileManager& profile_manager; ControllerNavigation* controller_navigation = nullptr; }; |
