2018-03-01 12:12:31 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-03-01 12:12:31 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QWidget>
|
2017-12-31 19:33:36 +00:00
|
|
|
namespace UICommon
|
|
|
|
{
|
2018-03-01 12:12:31 +00:00
|
|
|
class GameFile;
|
2017-12-31 19:33:36 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 06:29:13 +00:00
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
class Layer;
|
|
|
|
} // namespace Config
|
|
|
|
|
|
|
|
class ConfigBool;
|
|
|
|
class ConfigInteger;
|
|
|
|
class ConfigSlider;
|
|
|
|
class ConfigStringChoice;
|
2018-03-01 12:12:31 +00:00
|
|
|
class QPushButton;
|
2018-07-13 10:56:58 +00:00
|
|
|
class QTabWidget;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
|
|
|
class GameConfigWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-12-31 19:33:36 +00:00
|
|
|
explicit GameConfigWidget(const UICommon::GameFile& game);
|
2024-09-18 06:29:13 +00:00
|
|
|
~GameConfigWidget();
|
2018-03-01 12:12:31 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void LoadSettings();
|
2024-09-18 06:29:13 +00:00
|
|
|
void SetItalics();
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2018-07-13 10:56:58 +00:00
|
|
|
QString m_gameini_local_path;
|
|
|
|
|
|
|
|
QTabWidget* m_default_tab;
|
|
|
|
QTabWidget* m_local_tab;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2024-09-18 06:29:13 +00:00
|
|
|
ConfigBool* m_enable_dual_core;
|
|
|
|
ConfigBool* m_enable_mmu;
|
|
|
|
ConfigBool* m_enable_fprf;
|
|
|
|
ConfigBool* m_sync_gpu;
|
|
|
|
ConfigBool* m_emulate_disc_speed;
|
|
|
|
ConfigBool* m_use_dsp_hle;
|
|
|
|
ConfigBool* m_use_monoscopic_shadows;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2024-09-18 06:29:13 +00:00
|
|
|
ConfigStringChoice* m_deterministic_dual_core;
|
|
|
|
ConfigSlider* m_depth_slider;
|
|
|
|
ConfigInteger* m_convergence_spin;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2018-07-13 10:56:58 +00:00
|
|
|
const UICommon::GameFile& m_game;
|
|
|
|
std::string m_game_id;
|
2024-09-18 06:29:13 +00:00
|
|
|
std::unique_ptr<Config::Layer> m_layer;
|
|
|
|
std::unique_ptr<Config::Layer> m_global_layer;
|
|
|
|
int m_prev_tab_index = 0;
|
2018-03-01 12:12:31 +00:00
|
|
|
};
|