mirror of https://github.com/PCSX2/pcsx2.git
GS: Add texture dumping/replacement/reload replacement hotkeys
Qt only.
This commit is contained in:
parent
322ff3fcb9
commit
0bb7cc0a1a
|
@ -1649,6 +1649,38 @@ BEGIN_HOTKEY_LIST(g_gs_hotkeys){
|
|||
if (!pressed)
|
||||
HotkeyAdjustZoom(-1.0);
|
||||
}},
|
||||
{"ToggleTextureDumping", "Graphics", "Toggle Texture Dumping", [](bool pressed) {
|
||||
if (!pressed)
|
||||
{
|
||||
EmuConfig.GS.DumpReplaceableTextures = !EmuConfig.GS.DumpReplaceableTextures;
|
||||
Host::AddKeyedOSDMessage("ToggleTextureReplacements", EmuConfig.GS.DumpReplaceableTextures ? "Texture dumping is now enabled." : "Texture dumping is now disabled.", 10.0f);
|
||||
GetMTGS().ApplySettings();
|
||||
}
|
||||
}},
|
||||
{"ToggleTextureReplacements", "Graphics", "Toggle Texture Replacements", [](bool pressed) {
|
||||
if (!pressed)
|
||||
{
|
||||
EmuConfig.GS.LoadTextureReplacements = !EmuConfig.GS.LoadTextureReplacements;
|
||||
Host::AddKeyedOSDMessage("ToggleTextureReplacements", EmuConfig.GS.LoadTextureReplacements ? "Texture replacements are now enabled." : "Texture replacements are now disabled.", 10.0f);
|
||||
GetMTGS().ApplySettings();
|
||||
}
|
||||
}},
|
||||
{"ReloadTextureReplacements", "Graphics", "Reload Texture Replacements", [](bool pressed) {
|
||||
if (!pressed)
|
||||
{
|
||||
if (!EmuConfig.GS.LoadTextureReplacements)
|
||||
{
|
||||
Host::AddKeyedOSDMessage("ReloadTextureReplacements", "Texture replacements are not enabled.", 10.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
Host::AddKeyedOSDMessage("ReloadTextureReplacements", "Reloading texture replacements...", 10.0f);
|
||||
GetMTGS().RunOnGSThread([]() {
|
||||
GSTextureReplacements::ReloadReplacementMap();
|
||||
});
|
||||
}
|
||||
}
|
||||
}},
|
||||
END_HOTKEY_LIST()
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue