mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-11 01:34:17 +02:00
GameDB: Add AAT rec to the DB
This commit is contained in:
committed by
lightningterror
parent
5821762870
commit
3afc1c2663
@@ -229,6 +229,11 @@
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"recommendedAccurateAlphaTest": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"trilinearFiltering": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -81,6 +81,7 @@ namespace GameDatabaseSchema
|
||||
MinimumBlendingLevel,
|
||||
MaximumBlendingLevel,
|
||||
RecommendedBlendingLevel,
|
||||
RecommendedAccurateAlphaTest,
|
||||
GetSkipCount,
|
||||
BeforeDraw,
|
||||
MoveHandler,
|
||||
|
||||
Reference in New Issue
Block a user