mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -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
|
||||
|
@ -350,4 +350,7 @@ void Init(API api, Vendor vendor, Driver driver, const double version, const Fam
|
||||
// Once Vendor and driver version is set, this will return if it has the applicable bug passed to
|
||||
// it.
|
||||
bool HasBug(Bug bug);
|
||||
|
||||
// Overrides the current state of a bug
|
||||
void OverrideBug(Bug bug, bool new_value);
|
||||
} // namespace DriverDetails
|
||||
|
Reference in New Issue
Block a user