diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu/configuration/config.h | 1 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 8 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 6288fef62..fe12fa8f3 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp | |||
| @@ -101,6 +101,12 @@ const std::map<Settings::RendererBackend, QString> Config::renderer_backend_text | |||
| 101 | {Settings::RendererBackend::Null, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Null"))}, | 101 | {Settings::RendererBackend::Null, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "Null"))}, |
| 102 | }; | 102 | }; |
| 103 | 103 | ||
| 104 | const std::map<Settings::ShaderBackend, QString> Config::shader_backend_texts_map = { | ||
| 105 | {Settings::ShaderBackend::GLSL, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "GLSL"))}, | ||
| 106 | {Settings::ShaderBackend::GLASM, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "GLASM"))}, | ||
| 107 | {Settings::ShaderBackend::SPIRV, QStringLiteral(QT_TRANSLATE_NOOP("GMainWindow", "SPIRV"))}, | ||
| 108 | }; | ||
| 109 | |||
| 104 | // This shouldn't have anything except static initializers (no functions). So | 110 | // This shouldn't have anything except static initializers (no functions). So |
| 105 | // QKeySequence(...).toString() is NOT ALLOWED HERE. | 111 | // QKeySequence(...).toString() is NOT ALLOWED HERE. |
| 106 | // This must be in alphabetical order according to action name as it must have the same order as | 112 | // This must be in alphabetical order according to action name as it must have the same order as |
diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.h index ad590ea9e..0fd4baf6b 100644 --- a/src/yuzu/configuration/config.h +++ b/src/yuzu/configuration/config.h | |||
| @@ -54,6 +54,7 @@ public: | |||
| 54 | static const std::map<bool, QString> use_docked_mode_texts_map; | 54 | static const std::map<bool, QString> use_docked_mode_texts_map; |
| 55 | static const std::map<Settings::GPUAccuracy, QString> gpu_accuracy_texts_map; | 55 | static const std::map<Settings::GPUAccuracy, QString> gpu_accuracy_texts_map; |
| 56 | static const std::map<Settings::RendererBackend, QString> renderer_backend_texts_map; | 56 | static const std::map<Settings::RendererBackend, QString> renderer_backend_texts_map; |
| 57 | static const std::map<Settings::ShaderBackend, QString> shader_backend_texts_map; | ||
| 57 | 58 | ||
| 58 | static constexpr UISettings::Theme default_theme{ | 59 | static constexpr UISettings::Theme default_theme{ |
| 59 | #ifdef _WIN32 | 60 | #ifdef _WIN32 |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 82bce9a3a..696ba4271 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -4115,7 +4115,13 @@ void GMainWindow::UpdateDockedButton() { | |||
| 4115 | void GMainWindow::UpdateAPIText() { | 4115 | void GMainWindow::UpdateAPIText() { |
| 4116 | const auto api = Settings::values.renderer_backend.GetValue(); | 4116 | const auto api = Settings::values.renderer_backend.GetValue(); |
| 4117 | const auto renderer_status_text = Config::renderer_backend_texts_map.find(api)->second; | 4117 | const auto renderer_status_text = Config::renderer_backend_texts_map.find(api)->second; |
| 4118 | renderer_status_button->setText(renderer_status_text.toUpper()); | 4118 | renderer_status_button->setText( |
| 4119 | api == Settings::RendererBackend::OpenGL | ||
| 4120 | ? tr("%1 %2").arg( | ||
| 4121 | renderer_status_text.toUpper(), | ||
| 4122 | Config::shader_backend_texts_map.find(Settings::values.shader_backend.GetValue()) | ||
| 4123 | ->second) | ||
| 4124 | : renderer_status_text.toUpper()); | ||
| 4119 | } | 4125 | } |
| 4120 | 4126 | ||
| 4121 | void GMainWindow::UpdateFilterText() { | 4127 | void GMainWindow::UpdateFilterText() { |