diff options
| author | Silent <zdanio95@gmail.com> | 2019-07-21 00:57:50 +0200 |
|---|---|---|
| committer | Silent <zdanio95@gmail.com> | 2019-07-26 19:39:07 +0200 |
| commit | 890f781cd07490a3db3a7c0e93fc957422371f25 (patch) | |
| tree | 6ddb76ab3e3c7fa0f079167cb1186b0bae661b23 /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | |
| parent | 799c52463eb7987d31c70430422fa1499f2b3ef9 (diff) | |
Factorize software renderer backend switching warning to be fetched from a new GetWarningMessage in video backend - will be needed for DX11.1 feature set warnings
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index 978da839bc..28a2fd5182 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -160,16 +160,16 @@ void GeneralWidget::SaveSettings() const auto current_backend = m_backend_combo->currentData().toString().toStdString(); if (SConfig::GetInstance().m_strVideoBackend != current_backend) { - if (current_backend == "Software Renderer") + auto warningMessage = + g_available_video_backends[m_backend_combo->currentIndex()]->GetWarningMessage(); + if (warningMessage) { ModalMessageBox confirm_sw(this); confirm_sw.setIcon(QMessageBox::Warning); confirm_sw.setStandardButtons(QMessageBox::Yes | QMessageBox::No); confirm_sw.setWindowTitle(tr("Confirm backend change")); - confirm_sw.setText(tr("The software renderer is significantly slower than other " - "backends and is only recommended for debugging purposes.\n\nDo you " - "really want to enable software rendering? If unsure, select 'No'.")); + confirm_sw.setText(tr(warningMessage->c_str())); if (confirm_sw.exec() != QMessageBox::Yes) { |
