More vector return value stuff

This commit is contained in:
rtldg 2025-03-13 09:56:08 +00:00
parent 860326b312
commit e20a0cf072

View File

@ -1461,11 +1461,16 @@ namespace SourceHook
bool probablyVector = (pi.size == 12);
if (hasSpecialFunctions || tooBig || probablyVector)
if (hasSpecialFunctions || tooBig)
{
pi.flags |= PassInfo::PassFlag_RetMem;
return true;
}
else if (probablyVector)
{
pi.flags |= PassInfo::PassFlag_RetReg;
return true;
}
else
{
return false;