From ecd8102688248065ee85f8d53828da4c687c638c Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Sun, 18 May 2025 13:23:45 +0100 Subject: [PATCH] Update consoleFunctions.cpp add isPlayerBuild functon to see if this is a playback only build of torque. --- Engine/source/console/consoleFunctions.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index dbcf28963..31a857943 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/Engine/source/console/consoleFunctions.cpp @@ -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"