mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: Add ability for backends to override bugs
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user