mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-22 13:24:23 +00:00
clean
Removed intel runner from mac, it never run Removed arm from windows as it will always fail as git ci runners are not arm removed gcc12 kept gcc13 Added convenience function for checking if a package is active
This commit is contained in:
parent
4062a1bbbd
commit
872c765ca0
5 changed files with 23 additions and 31 deletions
|
|
@ -1748,6 +1748,28 @@ void Namespace::relinkPackages()
|
|||
activatePackage(mActivePackages[i]);
|
||||
}
|
||||
|
||||
bool Namespace::isPackageActive(StringTableEntry name)
|
||||
{
|
||||
S32 x;
|
||||
|
||||
for (x = 0; x < mNumActivePackages; x++)
|
||||
{
|
||||
if (mActivePackages[x] == name)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
DefineEngineFunction(isPackageActive, bool, (String identifier), ,
|
||||
"@brief Returns true if the identifier is a package and is active, otherwise false.\n\n"
|
||||
"@ingroup Packages\n")
|
||||
{
|
||||
StringTableEntry name = StringTable->insert(identifier.c_str());
|
||||
return Namespace::isPackageActive(name);
|
||||
}
|
||||
|
||||
DefineEngineFunction(isPackage, bool, (String identifier), ,
|
||||
"@brief Returns true if the identifier is the name of a declared package.\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue