mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Version number change.
Also adds console functions to get the user's application version.
This commit is contained in:
parent
78242191ec
commit
f9d52147ac
4 changed files with 53 additions and 36 deletions
|
|
@ -25,23 +25,35 @@
|
|||
#include "console/console.h"
|
||||
|
||||
static const U32 csgVersionNumber = TORQUE_GAME_ENGINE;
|
||||
static const U32 appVersionNumber = TORQUE_APP_VERSION;
|
||||
|
||||
U32 getVersionNumber()
|
||||
{
|
||||
return csgVersionNumber;
|
||||
}
|
||||
|
||||
U32 getAppVersionNumber()
|
||||
{
|
||||
return appVersionNumber;
|
||||
}
|
||||
|
||||
const char* getVersionString()
|
||||
{
|
||||
return TORQUE_GAME_ENGINE_VERSION_STRING;
|
||||
}
|
||||
|
||||
const char* getAppVersionString()
|
||||
{
|
||||
return TORQUE_APP_VERSION_STRING;
|
||||
}
|
||||
|
||||
/// TGE 0001
|
||||
/// TGEA 0002
|
||||
/// TGB 0003
|
||||
/// TGEA 360 0004
|
||||
/// TGE WII 0005
|
||||
/// Torque 3D 0006
|
||||
/// Torque 3D MIT 0007
|
||||
|
||||
const char* getEngineProductString()
|
||||
{
|
||||
|
|
@ -77,18 +89,31 @@ const char* getCompileTimeString()
|
|||
|
||||
ConsoleFunctionGroupBegin( CompileInformation, "Functions to get version information about the current executable." );
|
||||
|
||||
ConsoleFunction( getVersionNumber, S32, 1, 1, "Get the version of the build, as a string.\n\n"
|
||||
ConsoleFunction( getVersionNumber, S32, 1, 1, "Get the version of the engine build, as a string.\n\n"
|
||||
"@ingroup Debugging")
|
||||
{
|
||||
return getVersionNumber();
|
||||
}
|
||||
|
||||
ConsoleFunction( getVersionString, const char*, 1, 1, "Get the version of the build, as a string.\n\n"
|
||||
ConsoleFunction( getAppVersionNumber, S32, 1, 1, "Get the version of the application build, as a string.\n\n"
|
||||
"@ingroup Debugging")
|
||||
{
|
||||
return getAppVersionNumber();
|
||||
}
|
||||
|
||||
|
||||
ConsoleFunction( getVersionString, const char*, 1, 1, "Get the version of the engine build, as a human readable string.\n\n"
|
||||
"@ingroup Debugging")
|
||||
{
|
||||
return getVersionString();
|
||||
}
|
||||
|
||||
ConsoleFunction( getAppVersionString, const char*, 1, 1, "Get the version of the aplication, as a human readable string.\n\n"
|
||||
"@ingroup Debugging")
|
||||
{
|
||||
return getAppVersionString();
|
||||
}
|
||||
|
||||
ConsoleFunction( getEngineName, const char*, 1, 1, "Get the name of the engine product that this is running from, as a string.\n\n"
|
||||
"@ingroup Debugging")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue