From 6799e8a67b3b76fd263ea2c46022fc21e0f5e3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 7 Sep 2023 13:54:46 +0200 Subject: [PATCH] Add a little reminder that saving new textures is on, if they are. --- GPU/Common/TextureReplacer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GPU/Common/TextureReplacer.cpp b/GPU/Common/TextureReplacer.cpp index 35e62b81ae..a3f0cf8496 100644 --- a/GPU/Common/TextureReplacer.cpp +++ b/GPU/Common/TextureReplacer.cpp @@ -92,6 +92,13 @@ void TextureReplacer::NotifyConfigChanged() { } enabled_ = File::IsDirectory(basePath_); + + if (g_Config.bSaveNewTextures) { + // Somewhat crude message, re-using translation strings. + auto d = GetI18NCategory(I18NCat::DEVELOPER); + auto di = GetI18NCategory(I18NCat::DIALOG); + g_OSD.Show(OSDType::MESSAGE_INFO, std::string(d->T("Save new textures")) + ": " + di->T("Enabled"), 2.0f); + } } else if (wasEnabled) { delete vfs_; vfs_ = nullptr; @@ -356,7 +363,7 @@ bool TextureReplacer::LoadIniValues(IniFile &ini, VFSBackend *dir, bool isOverri auto gr = GetI18NCategory(I18NCat::GRAPHICS); - g_OSD.Show(OSDType::MESSAGE_SUCCESS, gr->T("Texture replacement pack activated")); + g_OSD.Show(OSDType::MESSAGE_SUCCESS, gr->T("Texture replacement pack activated"), 2.0f); return true; }