From e31aa70ff8502d8955c9ef697dec4ea57a8536e5 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Dec 2016 08:20:45 -0800 Subject: [PATCH] Add a hotkey for dumping textures --- Source/Core/Core/HotkeyManager.cpp | 1 + Source/Core/Core/HotkeyManager.h | 1 + Source/Core/DolphinWX/Frame.cpp | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Source/Core/Core/HotkeyManager.cpp b/Source/Core/Core/HotkeyManager.cpp index ecce747f81..716c0bfb09 100644 --- a/Source/Core/Core/HotkeyManager.cpp +++ b/Source/Core/Core/HotkeyManager.cpp @@ -49,6 +49,7 @@ const std::string hotkey_labels[] = { _trans("Toggle Aspect Ratio"), _trans("Toggle EFB Copies"), _trans("Toggle Fog"), + _trans("Toggle Texture Dumping"), _trans("Toggle Custom Textures"), _trans("Increase IR"), diff --git a/Source/Core/Core/HotkeyManager.h b/Source/Core/Core/HotkeyManager.h index d538c902eb..5f7b3cee71 100644 --- a/Source/Core/Core/HotkeyManager.h +++ b/Source/Core/Core/HotkeyManager.h @@ -51,6 +51,7 @@ enum Hotkey HK_TOGGLE_AR, HK_TOGGLE_EFBCOPIES, HK_TOGGLE_FOG, + HK_TOGGLE_DUMPTEXTURES, HK_TOGGLE_TEXTURES, HK_INCREASE_IR, diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index 7edf138606..aca22794b9 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -1337,6 +1337,10 @@ void CFrame::ParseHotkeys() OSDChoice = 4; g_Config.bDisableFog = !g_Config.bDisableFog; } + if (IsHotkey(HK_TOGGLE_DUMPTEXTURES)) + { + g_Config.bDumpTextures = !g_Config.bDumpTextures; + } if (IsHotkey(HK_TOGGLE_TEXTURES)) g_Config.bHiresTextures = !g_Config.bHiresTextures; Core::SetIsThrottlerTempDisabled(IsHotkey(HK_TOGGLE_THROTTLE, true));