| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QWidget> |
| 7 |
|
| 8 |
class ConfigBool; |
| 9 |
class ConfigSlider; |
| 10 |
class ConfigSliderLabel; |
| 11 |
class GraphicsPane; |
| 12 |
|
| 13 |
namespace Config |
| 14 |
{ |
| 15 |
class Layer; |
| 16 |
} |
| 17 |
|
| 18 |
class HacksWidget final : public QWidget |
| 19 |
{ |
| 20 |
Q_OBJECT |
| 21 |
public: |
| 22 |
explicit HacksWidget(GraphicsPane* gfx_pane); |
| 23 |
|
| 24 |
private: |
| 25 |
void OnBackendChanged(const QString& backend_name); |
| 26 |
|
| 27 |
|
| 28 |
ConfigBool* m_skip_efb_cpu; |
| 29 |
ConfigBool* m_ignore_format_changes; |
| 30 |
ConfigBool* m_store_efb_copies; |
| 31 |
ConfigBool* m_defer_efb_copies; |
| 32 |
|
| 33 |
|
| 34 |
ConfigSliderLabel* m_accuracy_label; |
| 35 |
ConfigSlider* m_accuracy; |
| 36 |
ConfigBool* m_gpu_texture_decoding; |
| 37 |
|
| 38 |
|
| 39 |
ConfigBool* m_store_xfb_copies; |
| 40 |
ConfigBool* m_immediate_xfb; |
| 41 |
ConfigBool* m_skip_duplicate_xfbs; |
| 42 |
|
| 43 |
|
| 44 |
ConfigBool* m_fast_depth_calculation; |
| 45 |
ConfigBool* m_disable_bounding_box; |
| 46 |
ConfigBool* m_vertex_rounding; |
| 47 |
ConfigBool* m_vi_skip; |
| 48 |
ConfigBool* m_save_texture_cache_state; |
| 49 |
|
| 50 |
Config::Layer* m_game_layer = nullptr; |
| 51 |
|
| 52 |
void CreateWidgets(); |
| 53 |
void ConnectWidgets(); |
| 54 |
void AddDescriptions(); |
| 55 |
|
| 56 |
void UpdateGPUTextureDecodingEnabled(); |
| 57 |
void UpdateDeferEFBCopiesEnabled(); |
| 58 |
void UpdateSkipPresentingDuplicateFramesEnabled(); |
| 59 |
}; |