This commit is contained in:
Madpwnhammer 2022-12-08 14:14:51 +03:00
parent 65e10d83b4
commit 94d6696f02
1 changed files with 4 additions and 4 deletions

View File

@ -228,13 +228,13 @@ function obscure_type($type_str, $fld)
if($fld->hasToken('obscured'))
{
if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isUint32())
return "CodeStage.AntiCheat.ObscuredType.ObscuredUInt";
return "CodeStage.AntiCheat.ObscuredTypes.ObscuredUInt";
else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isUint64())
return "CodeStage.AntiCheat.ObscuredType.ObscuredULong";
return "CodeStage.AntiCheat.ObscuredTypes.ObscuredULong";
else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isInt64())
return "CodeStage.AntiCheat.ObscuredType.ObscuredLong";
return "CodeStage.AntiCheat.ObscuredTypes.ObscuredLong";
else if($fld->getType() instanceof \mtgBuiltinType && $fld->getType()->isFloat())
return "CodeStage.AntiCheat.ObscuredType.ObscuredFloat";
return "CodeStage.AntiCheat.ObscuredTypes.ObscuredFloat";
else
throw new Exception("Not supported obscured type: " . $fld->getType());
}