mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
84a937ae65
Creates a layer outside the game config layer system and passes it to the created gfx widows, so as to not interfere with the global config system. Supports multiple game properties being open at once. Supports editing while a game is playing, but the options only save and update the active game when the window is closed. Right-clicking will remove a property from the game ini.
64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigBool;
|
|
class GameConfigWidget;
|
|
class GraphicsWindow;
|
|
class QLabel;
|
|
class ToolTipSlider;
|
|
|
|
namespace Config
|
|
{
|
|
class Layer;
|
|
} // namespace Config
|
|
|
|
class HacksWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HacksWidget(GraphicsWindow* parent);
|
|
HacksWidget(GameConfigWidget* parent, Config::Layer* layer);
|
|
|
|
private:
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
void OnBackendChanged(const QString& backend_name);
|
|
|
|
// EFB
|
|
ConfigBool* m_skip_efb_cpu;
|
|
ConfigBool* m_ignore_format_changes;
|
|
ConfigBool* m_store_efb_copies;
|
|
ConfigBool* m_defer_efb_copies;
|
|
|
|
// Texture Cache
|
|
QLabel* m_accuracy_label;
|
|
ToolTipSlider* m_accuracy;
|
|
ConfigBool* m_gpu_texture_decoding;
|
|
|
|
// External Framebuffer
|
|
ConfigBool* m_store_xfb_copies;
|
|
ConfigBool* m_immediate_xfb;
|
|
ConfigBool* m_skip_duplicate_xfbs;
|
|
|
|
// Other
|
|
ConfigBool* m_fast_depth_calculation;
|
|
ConfigBool* m_disable_bounding_box;
|
|
ConfigBool* m_vertex_rounding;
|
|
ConfigBool* m_vi_skip;
|
|
ConfigBool* m_save_texture_cache_state;
|
|
|
|
Config::Layer* m_game_layer = nullptr;
|
|
|
|
void CreateWidgets();
|
|
void ConnectWidgets();
|
|
void AddDescriptions();
|
|
|
|
void UpdateDeferEFBCopiesEnabled();
|
|
void UpdateSkipPresentingDuplicateFramesEnabled();
|
|
};
|