Fix s
This commit is contained in:
parent
65e10d83b4
commit
94d6696f02
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue