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 23, 2020
1 parent dbde030 commit c1a070f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/Core/DolphinQt/HotkeyScheduler.cpp
Expand Up @@ -391,13 +391,21 @@ 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"));
}

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 c1a070f

Please sign in to comment.