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

Function getBoolVariable

Engine/source/console/console.cpp:1036–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036bool getBoolVariable(const char *varName, bool def)
1037{
1038 const char *objField = getObjectTokenField(varName);
1039 if (objField)
1040 {
1041 return *objField ? dAtob(objField) : def;
1042 }
1043 else
1044 {
1045 Dictionary::Entry *entry = getVariableEntry(varName);
1046 objField = entry ? entry->getStringValue() : "";
1047 return *objField ? dAtob(objField) : def;
1048 }
1049}
1050
1051S32 getIntVariable(const char *varName, S32 def)
1052{

Callers 15

execMethod · 0.85
executeFileFunction · 0.85
compileExecMethod · 0.85
executionStoppedMethod · 0.85
_updateMethod · 0.85
canLoadCachedDTSMethod · 0.85
enumerateSceneMethod · 0.85
canLoadCachedDTSMethod · 0.85
_setVideoModeMethod · 0.85
_initShaderMethod · 0.85
DefineNewEngineFunctionFunction · 0.85
startSendingFileMethod · 0.85

Calls 4

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

Tested by 1

_populateMenuMethod · 0.68