mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-24 06:35:42 +00:00
e731c87757
Also move PGXP CPU mode/vertex cache to advanced options
56 lines
908 B
C++
56 lines
908 B
C++
#pragma once
|
|
#include <QtCore/QVector>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
#include "ui_advancedsettingswidget.h"
|
|
|
|
class QtHostInterface;
|
|
class SettingsDialog;
|
|
|
|
class AdvancedSettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AdvancedSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
|
~AdvancedSettingsWidget();
|
|
|
|
private:
|
|
struct TweakOption
|
|
{
|
|
enum class Type
|
|
{
|
|
Boolean,
|
|
IntRange
|
|
};
|
|
|
|
Type type;
|
|
QString description;
|
|
std::string key;
|
|
std::string section;
|
|
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
bool default_value;
|
|
} boolean;
|
|
|
|
struct
|
|
{
|
|
int min_value;
|
|
int max_value;
|
|
int default_value;
|
|
} int_range;
|
|
};
|
|
};
|
|
|
|
Ui::AdvancedSettingsWidget m_ui;
|
|
|
|
void onResetToDefaultClicked();
|
|
|
|
QtHostInterface* m_host_interface;
|
|
|
|
QVector<TweakOption> m_tweak_options;
|
|
};
|