MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getBoolVariable

Function getBoolVariable

Engine/source/console/console.cpp:984–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984bool getBoolVariable(const char *varName, bool def)
985{
986 const char *objField = getObjectTokenField(varName);
987 if (objField)
988 {
989 return *objField ? dAtob(objField) : def;
990 }
991 else
992 {
993 Dictionary::Entry *entry = getVariableEntry(varName);
994 objField = entry ? entry->getStringValue() : "";
995 return *objField ? dAtob(objField) : def;
996 }
997}
998
999S32 getIntVariable(const char *varName, S32 def)
1000{

Callers 15

execMethod · 0.85
executeFileFunction · 0.85
executionStoppedMethod · 0.85
_updateMethod · 0.85
canLoadCachedDTSMethod · 0.85
activateMethod · 0.85
torque_getconsoleboolFunction · 0.85
startSendingFileMethod · 0.85
_initMethod · 0.85
createDirect3D9Method · 0.85
setupPresentParamsMethod · 0.85

Calls 4

getObjectTokenFieldFunction · 0.85
getVariableEntryFunction · 0.85
dAtobFunction · 0.70
getStringValueMethod · 0.45

Tested by 1

_populateMenuMethod · 0.68