mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-07 21:23:31 +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.
82 lines
2.0 KiB
C++
82 lines
2.0 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class ConfigInteger;
|
|
class GameConfigWidget;
|
|
class GraphicsWindow;
|
|
|
|
namespace Config
|
|
{
|
|
class Layer;
|
|
} // namespace Config
|
|
|
|
class AdvancedWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AdvancedWidget(GraphicsWindow* parent);
|
|
AdvancedWidget(GameConfigWidget* parent, Config::Layer* layer);
|
|
|
|
private:
|
|
void CreateWidgets();
|
|
void ConnectWidgets();
|
|
void AddDescriptions();
|
|
void OnBackendChanged();
|
|
void OnEmulationStateChanged(bool running);
|
|
|
|
// Debugging
|
|
ConfigBool* m_enable_wireframe;
|
|
ConfigBool* m_show_statistics;
|
|
ConfigBool* m_show_proj_statistics;
|
|
ConfigBool* m_enable_format_overlay;
|
|
ConfigBool* m_enable_api_validation;
|
|
ConfigBool* m_show_fps;
|
|
ConfigBool* m_show_ftimes;
|
|
ConfigBool* m_show_vps;
|
|
ConfigBool* m_show_vtimes;
|
|
ConfigBool* m_show_graphs;
|
|
ConfigBool* m_show_speed;
|
|
ConfigBool* m_show_speed_colors;
|
|
ConfigInteger* m_perf_samp_window;
|
|
ConfigBool* m_log_render_time;
|
|
|
|
// Utility
|
|
ConfigBool* m_prefetch_custom_textures;
|
|
ConfigBool* m_dump_efb_target;
|
|
ConfigBool* m_dump_xfb_target;
|
|
ConfigBool* m_disable_vram_copies;
|
|
ConfigBool* m_load_custom_textures;
|
|
ConfigBool* m_enable_graphics_mods;
|
|
|
|
// Texture dumping
|
|
ConfigBool* m_dump_textures;
|
|
ConfigBool* m_dump_mip_textures;
|
|
ConfigBool* m_dump_base_textures;
|
|
|
|
// Frame dumping
|
|
ConfigBool* m_dump_use_ffv1;
|
|
ConfigChoice* m_frame_dumps_resolution_type;
|
|
ConfigInteger* m_dump_bitrate;
|
|
ConfigInteger* m_png_compression_level;
|
|
|
|
// Misc
|
|
ConfigBool* m_enable_cropping;
|
|
ConfigBool* m_enable_prog_scan;
|
|
ConfigBool* m_backend_multithreading;
|
|
ConfigBool* m_prefer_vs_for_point_line_expansion;
|
|
ConfigBool* m_cpu_cull;
|
|
ConfigBool* m_borderless_fullscreen;
|
|
|
|
// Experimental
|
|
ConfigBool* m_defer_efb_access_invalidation;
|
|
ConfigBool* m_manual_texture_sampling;
|
|
|
|
Config::Layer* m_game_layer = nullptr;
|
|
};
|