mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VideoCommon: Add ability for backends to override bugs
This commit is contained in:
parent
463269f704
commit
99f0c3fa01
3 changed files with 139 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue