Skip to content

Commit

Permalink
Update HotkeyScheduler.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Losuc committed Oct 24, 2020
1 parent c1a070f commit ed189d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/Core/DolphinQt/HotkeyScheduler.cpp
Expand Up @@ -391,21 +391,22 @@ void HotkeyScheduler::Run()
break;
}
}

if (IsHotkey(HK_TOGGLE_SKIP_EFB_ACCESS))
{
const bool new_value = !Config::Get(Config::GFX_HACK_EFB_ACCESS_ENABLE);
Config::SetCurrent(Config::GFX_HACK_EFB_ACCESS_ENABLE, new_value);
OSD::AddMessage(StringFromFormat("% EFB Access from CPU", new_value ? "Skip" : "Don't skip"));
OSD::AddMessage(
StringFromFormat("%s EFB Access from CPU", new_value ? "Skip" : "Don't skip"));
}

if (IsHotkey(HK_TOGGLE_EFBCOPIES))
{
const bool new_value = !Config::Get(Config::GFX_HACK_SKIP_EFB_COPY_TO_RAM);
Config::SetCurrent(Config::GFX_HACK_SKIP_EFB_COPY_TO_RAM, new_value);
OSD::AddMessage(StringFromFormat("Copy EFB: %s", new_value ? "to Texture" : "to RAM"));
}

auto ShowXFBCopies = []() {
OSD::AddMessage(StringFromFormat(
"Copy XFB: %s%s", Config::Get(Config::GFX_HACK_IMMEDIATE_XFB) ? " (Immediate)" : "",
Expand Down

0 comments on commit ed189d2

Please sign in to comment.