mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Texture Dumping: Show OSD message on startup and when toggled
If texture dumping is enabled, notify the user on emulation startup using an On Screen Display message. Also notify the user when texture dumping is toggled. Addresses https://bugs.dolphin-emu.org/issues/12445.
This commit is contained in:
@ -469,7 +469,14 @@ void HotkeyScheduler::Run()
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_TOGGLE_DUMPTEXTURES))
|
||||
Config::SetCurrent(Config::GFX_DUMP_TEXTURES, !Config::Get(Config::GFX_DUMP_TEXTURES));
|
||||
{
|
||||
const bool enable_dumping = !Config::Get(Config::GFX_DUMP_TEXTURES);
|
||||
Config::SetCurrent(Config::GFX_DUMP_TEXTURES, enable_dumping);
|
||||
OSD::AddMessage(
|
||||
fmt::format("Texture Dumping {}",
|
||||
enable_dumping ? "enabled. This will reduce performance." : "disabled."),
|
||||
OSD::Duration::NORMAL);
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_TOGGLE_TEXTURES))
|
||||
Config::SetCurrent(Config::GFX_HIRES_TEXTURES, !Config::Get(Config::GFX_HIRES_TEXTURES));
|
||||
|
Reference in New Issue
Block a user