mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Update consoleFunctions.cpp
add isPlayerBuild functon to see if this is a playback only build of torque.
This commit is contained in:
parent
70502d1b0f
commit
ecd8102688
1 changed files with 14 additions and 0 deletions
|
|
@ -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, (),,
|
DefineEngineFunction( isShippingBuild, bool, (),,
|
||||||
"Test whether the engine has been compiled with TORQUE_SHIPPING, i.e. in a form meant for final release.\n\n"
|
"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"
|
"@return True if this is a shipping build; false otherwise.\n\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue