GameDB: Add AAT rec to the DB

This commit is contained in:
JordanTheToaster
2026-06-15 15:36:58 +01:00
committed by lightningterror
parent 5821762870
commit 3afc1c2663
3 changed files with 28 additions and 0 deletions
+5
View File
@@ -229,6 +229,11 @@
"minimum": 0,
"maximum": 1
},
"recommendedAccurateAlphaTest": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"trilinearFiltering": {
"type": "integer",
"minimum": 0,
+22
View File
@@ -394,6 +394,7 @@ static const char* s_gs_hw_fix_names[] = {
"minimumBlendingLevel",
"maximumBlendingLevel",
"recommendedBlendingLevel",
"recommendedAccurateAlphaTest",
"getSkipCount",
"beforeDraw",
"moveHandler",
@@ -935,6 +936,27 @@ void GameDatabaseSchema::GameEntry::applyGSHardwareFixes(Pcsx2Config::GSOptions&
}
break;
case GSHWFixId::RecommendedAccurateAlphaTest:
{
if (!is_sw_renderer && value >= 0 && value <= 1 &&
static_cast<int>(config.HWAccurateAlphaTest) < value)
{
Host::AddKeyedOSDMessage("HWAlphaTestWarning",
fmt::format(TRANSLATE_FS("GameDatabase",
"{0} Accurate Alpha Test is currently disabled.\n"
"This game recommends enabling Accurate Alpha Test.\n"
"You can enable it in Game Properties to improve graphical\n"
"accuracy, but this may increase system requirements."),
ICON_FA_PAINTBRUSH),
Host::OSD_WARNING_DURATION);
}
else
{
Host::RemoveKeyedOSDMessage("HWAlphaTestWarning");
}
}
break;
case GSHWFixId::GetSkipCount:
config.GetSkipCountFunctionId = static_cast<s16>(value);
break;
+1
View File
@@ -81,6 +81,7 @@ namespace GameDatabaseSchema
MinimumBlendingLevel,
MaximumBlendingLevel,
RecommendedBlendingLevel,
RecommendedAccurateAlphaTest,
GetSkipCount,
BeforeDraw,
MoveHandler,