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>
|
|
|
|
|
|
|
|
#include "Common/IniFile.h"
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-03-01 12:12:31 +00:00
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QPushButton;
|
|
|
|
class QSlider;
|
|
|
|
class QSpinBox;
|
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);
|
2018-03-01 12:12:31 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
2018-07-13 10:56:58 +00:00
|
|
|
|
2018-03-01 12:12:31 +00:00
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
|
|
|
|
|
|
|
void SaveCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key);
|
2018-07-13 10:56:58 +00:00
|
|
|
void LoadCheckBox(QCheckBox* checkbox, const std::string& section, const std::string& key);
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2018-07-13 10:56:58 +00:00
|
|
|
QString m_gameini_sys_path;
|
|
|
|
QString m_gameini_local_path;
|
|
|
|
|
|
|
|
QTabWidget* m_default_tab;
|
|
|
|
QTabWidget* m_local_tab;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
|
|
|
QCheckBox* m_enable_dual_core;
|
|
|
|
QCheckBox* m_enable_mmu;
|
|
|
|
QCheckBox* m_enable_fprf;
|
|
|
|
QCheckBox* m_sync_gpu;
|
|
|
|
QCheckBox* m_enable_fast_disc;
|
|
|
|
QCheckBox* m_use_dsp_hle;
|
2018-07-13 10:56:58 +00:00
|
|
|
QCheckBox* m_use_monoscopic_shadows;
|
|
|
|
|
|
|
|
QPushButton* m_refresh_config;
|
|
|
|
|
2018-03-01 12:12:31 +00:00
|
|
|
QComboBox* m_deterministic_dual_core;
|
|
|
|
|
|
|
|
QSlider* m_depth_slider;
|
2018-07-13 10:56:58 +00:00
|
|
|
|
2018-03-01 12:12:31 +00:00
|
|
|
QSpinBox* m_convergence_spin;
|
|
|
|
|
2018-07-13 10:56:58 +00:00
|
|
|
const UICommon::GameFile& m_game;
|
|
|
|
std::string m_game_id;
|
2018-03-01 12:12:31 +00:00
|
|
|
|
2023-04-13 13:38:09 +00:00
|
|
|
Common::IniFile m_gameini_local;
|
|
|
|
Common::IniFile m_gameini_default;
|
2018-03-01 12:12:31 +00:00
|
|
|
};
|