Merge pull request #1466 from marauder2k9-torque/ISPLAYERBUILD-Added-function

add isPlayerBuild functon
This commit is contained in:
Brian Roberts 2025-05-18 08:28:51 -05:00 committed by GitHub
commit 4ec85c1e43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2744,6 +2744,20 @@ DefineEngineFunction( debug, void, (),,
//-----------------------------------------------------------------------------
DefineEngineFunction(isPlayerBuild, bool, (), ,
"Test whether the engine has been compiled with TORQUE_PLAYER.\n\n"
"@return True if this is a playback only build; false otherwise.\n\n"
"@ingroup Platform")
{
#ifdef TORQUE_PLAYER
return true;
#else
return false;
#endif
}
//-----------------------------------------------------------------------------
DefineEngineFunction( isShippingBuild, bool, (),,
"Test whether the engine has been compiled with TORQUE_SHIPPING, i.e. in a form meant for final release.\n\n"
"@return True if this is a shipping build; false otherwise.\n\n"