pineapple-src/src/yuzu/configuration/configure_general.h

54 lines
1.1 KiB
C
Raw Normal View History

2022-07-27 20:06:50 +02:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 16:15:37 +01:00
#pragma once
2021-06-04 10:40:16 +02:00
#include <functional>
2020-12-28 16:15:37 +01:00
#include <memory>
#include <QWidget>
2021-10-09 02:29:53 +02:00
namespace Core {
class System;
}
2021-06-04 10:40:16 +02:00
class ConfigureDialog;
2020-12-28 16:15:37 +01:00
namespace ConfigurationShared {
enum class CheckState;
}
class HotkeyRegistry;
namespace Ui {
class ConfigureGeneral;
}
class ConfigureGeneral : public QWidget {
Q_OBJECT
public:
2021-10-09 02:29:53 +02:00
explicit ConfigureGeneral(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 16:15:37 +01:00
~ConfigureGeneral() override;
2021-06-04 10:40:16 +02:00
void SetResetCallback(std::function<void()> callback);
void ResetDefaults();
2020-12-28 16:15:37 +01:00
void ApplyConfiguration();
2021-10-09 02:29:53 +02:00
void SetConfiguration();
2020-12-28 16:15:37 +01:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void SetupPerGameUI();
2021-06-04 10:40:16 +02:00
std::function<void()> reset_callback;
2020-12-28 16:15:37 +01:00
std::unique_ptr<Ui::ConfigureGeneral> ui;
2021-07-27 05:04:12 +02:00
ConfigurationShared::CheckState use_speed_limit;
2020-12-28 16:15:37 +01:00
ConfigurationShared::CheckState use_multi_core;
2022-02-22 00:50:44 +01:00
ConfigurationShared::CheckState use_extended_memory_layout;
2021-10-09 02:29:53 +02:00
const Core::System& system;
2020-12-28 16:15:37 +01:00
};