VideoCommon: Add ability for backends to override bugs

This commit is contained in:
TellowKrinkle
2023-05-17 20:15:33 -05:00
parent 463269f704
commit 99f0c3fa01
3 changed files with 139 additions and 51 deletions

View File

@ -217,4 +217,15 @@ bool HasBug(Bug bug)
return false;
return it->second.m_hasbug;
}
void OverrideBug(Bug bug, bool new_value)
{
const auto [it, added] = m_bugs.try_emplace(
bug, BugInfo{m_api, m_os, m_vendor, m_driver, m_family, bug, -1, -1, false});
if (it->second.m_hasbug != new_value)
{
// TODO: Report to DolphinAnalytics?
it->second.m_hasbug = new_value;
}
}
} // namespace DriverDetails