From 09f61656e36b1a1e2efa0d34a51ccf8b1aa9c130 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Mon, 5 Jun 2023 16:04:05 -0400 Subject: [PATCH] shared_translation: Add translation for AstcRecompression --- src/yuzu/configuration/shared_translation.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/yuzu/configuration/shared_translation.cpp b/src/yuzu/configuration/shared_translation.cpp index 49cb94d2e..50e19ede1 100644 --- a/src/yuzu/configuration/shared_translation.cpp +++ b/src/yuzu/configuration/shared_translation.cpp @@ -80,6 +80,7 @@ std::unique_ptr InitializeTranslations(QWidget* parent) { INSERT(Settings, use_asynchronous_gpu_emulation, "Use asynchronous GPU emulation", ""); INSERT(Settings, nvdec_emulation, "NVDEC emulation:", ""); INSERT(Settings, accelerate_astc, "ASTC Decoding Method:", ""); + INSERT(Settings, astc_recompression, "ASTC Recompression Method:", ""); INSERT(Settings, vsync_mode, "VSync Mode:", "FIFO (VSync) does not drop frames or exhibit tearing but is limited by the screen " "refresh rate.\nFIFO Relaxed is similar to FIFO but allows tearing as it recovers from " @@ -180,6 +181,14 @@ std::unique_ptr ComboboxEnumeration(QWidget* parent) { {static_cast(Settings::AstcDecodeMode::GPU), tr("GPU")}, {static_cast(Settings::AstcDecodeMode::CPUAsynchronous), tr("CPU Asynchronous")}, }}); + translations->insert( + {typeid(Settings::AstcRecompression), + { + {static_cast(Settings::AstcRecompression::Uncompressed), + tr("Uncompressed (Best quality)")}, + {static_cast(Settings::AstcRecompression::Bc1), tr("BC1 (Low quality)")}, + {static_cast(Settings::AstcRecompression::Bc3), tr("BC3 (Medium quality)")}, + }}); translations->insert({typeid(Settings::RendererBackend), { #ifdef HAS_OPENGL