diff options
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp index 432f09ab3b..6500a90027 100644 --- a/Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/SoftwareRendererWidget.cpp @@ -55,57 +55,7 @@ void SoftwareRendererWidget::CreateWidgets() for (const auto& backend : VideoBackendBase::GetAvailableBackends()) m_backend_combo->addItem(tr(backend->GetDisplayName().c_str())); - auto* overlay_box = new QGroupBox(tr("Overlay Information")); - auto* overlay_layout = new QGridLayout(); - overlay_box->setLayout(overlay_layout); - m_show_statistics = new GraphicsBool(tr("Show Statistics"), Config::GFX_OVERLAY_STATS); - - overlay_layout->addWidget(m_show_statistics); - - auto* utility_box = new QGroupBox(tr("Utility")); - auto* utility_layout = new QGridLayout(); - m_dump_textures = new GraphicsBool(tr("Dump Textures"), Config::GFX_DUMP_TEXTURES); - m_dump_objects = new GraphicsBool(tr("Dump Objects"), Config::GFX_SW_DUMP_OBJECTS); - utility_box->setLayout(utility_layout); - - utility_layout->addWidget(m_dump_textures, 1, 1); - utility_layout->addWidget(m_dump_objects, 1, 2); - - auto* debug_box = new QGroupBox(tr("Debug Only")); - auto* debug_layout = new QGridLayout(); - m_dump_tev_stages = new GraphicsBool(tr("Dump TEV Stages"), Config::GFX_SW_DUMP_TEV_STAGES); - m_dump_tev_fetches = - new GraphicsBool(tr("Dump Texture Fetches"), Config::GFX_SW_DUMP_TEV_TEX_FETCHES); - - debug_layout->addWidget(m_dump_tev_stages, 1, 1); - debug_layout->addWidget(m_dump_tev_fetches, 1, 2); - - debug_box->setLayout(debug_layout); - -#ifdef _DEBUG - utility_layout->addWidget(debug_box, 2, 1, 1, 2); -#endif - - auto* object_range_box = new QGroupBox(tr("Drawn Object Range")); - auto* object_range_layout = new QGridLayout(); - m_object_range_min = new QSpinBox(); - m_object_range_max = new QSpinBox(); - - for (auto* spin : {m_object_range_min, m_object_range_max}) - { - spin->setMinimum(0); - spin->setMaximum(100000); - } - - object_range_box->setLayout(object_range_layout); - - object_range_layout->addWidget(m_object_range_min, 1, 1); - object_range_layout->addWidget(m_object_range_max, 1, 2); - main_layout->addWidget(rendering_box); - main_layout->addWidget(overlay_box); - main_layout->addWidget(utility_box); - main_layout->addWidget(object_range_box); main_layout->addStretch(); setLayout(main_layout); @@ -115,10 +65,6 @@ void SoftwareRendererWidget::ConnectWidgets() { connect(m_backend_combo, qOverload<int>(&QComboBox::currentIndexChanged), [this](int) { SaveSettings(); }); - connect(m_object_range_min, qOverload<int>(&QSpinBox::valueChanged), - [this](int) { SaveSettings(); }); - connect(m_object_range_max, qOverload<int>(&QSpinBox::valueChanged), - [this](int) { SaveSettings(); }); } void SoftwareRendererWidget::LoadSettings() @@ -131,9 +77,6 @@ void SoftwareRendererWidget::LoadSettings() m_backend_combo->findText(tr(backend->GetDisplayName().c_str()))); } } - - m_object_range_min->setValue(Config::Get(Config::GFX_SW_DRAW_START)); - m_object_range_max->setValue(Config::Get(Config::GFX_SW_DRAW_END)); } void SoftwareRendererWidget::SaveSettings() @@ -148,9 +91,6 @@ void SoftwareRendererWidget::SaveSettings() break; } } - - Config::SetBaseOrCurrent(Config::GFX_SW_DRAW_START, m_object_range_min->value()); - Config::SetBaseOrCurrent(Config::GFX_SW_DRAW_END, m_object_range_max->value()); } void SoftwareRendererWidget::AddDescriptions() @@ -162,30 +102,9 @@ void SoftwareRendererWidget::AddDescriptions() "backend, so for the best emulation experience it's recommended to try both and " "choose the one that's less problematic.<br><br><dolphin_emphasis>If unsure, select " "OpenGL.</dolphin_emphasis>"); - static const char TR_SHOW_STATISTICS_DESCRIPTION[] = - QT_TR_NOOP("Show various rendering statistics.<br><br><dolphin_emphasis>If unsure, leave " - "this unchecked.</dolphin_emphasis>"); - static const char TR_DUMP_TEXTURES_DESCRIPTION[] = - QT_TR_NOOP("Dump decoded game textures to " - "User/Dump/Textures/<game_id>/.<br><br><dolphin_emphasis>If unsure, leave " - "this unchecked.</dolphin_emphasis>"); - static const char TR_DUMP_OBJECTS_DESCRIPTION[] = - QT_TR_NOOP("Dump objects to User/Dump/Objects/.<br><br><dolphin_emphasis>If unsure, leave " - "this unchecked.</dolphin_emphasis>"); - static const char TR_DUMP_TEV_STAGES_DESCRIPTION[] = - QT_TR_NOOP("Dump TEV Stages to User/Dump/Objects/.<br><br><dolphin_emphasis>If unsure, leave " - "this unchecked.</dolphin_emphasis>"); - static const char TR_DUMP_TEV_FETCHES_DESCRIPTION[] = QT_TR_NOOP( - "Dump Texture Fetches to User/Dump/Objects/.<br><br><dolphin_emphasis>If unsure, leave " - "this unchecked.</dolphin_emphasis>"); m_backend_combo->SetTitle(tr("Backend")); m_backend_combo->SetDescription(tr(TR_BACKEND_DESCRIPTION)); - m_show_statistics->SetDescription(tr(TR_SHOW_STATISTICS_DESCRIPTION)); - m_dump_textures->SetDescription(tr(TR_DUMP_TEXTURES_DESCRIPTION)); - m_dump_objects->SetDescription(tr(TR_DUMP_OBJECTS_DESCRIPTION)); - m_dump_tev_stages->SetDescription(tr(TR_DUMP_TEV_STAGES_DESCRIPTION)); - m_dump_tev_fetches->SetDescription(tr(TR_DUMP_TEV_FETCHES_DESCRIPTION)); } void SoftwareRendererWidget::OnEmulationStateChanged(bool running) |
