| 1049 | } |
| 1050 | |
| 1051 | S32 getIntVariable(const char *varName, S32 def) |
| 1052 | { |
| 1053 | const char *objField = getObjectTokenField(varName); |
| 1054 | if (objField) |
| 1055 | { |
| 1056 | return *objField ? dAtoi(objField) : def; |
| 1057 | } |
| 1058 | else |
| 1059 | { |
| 1060 | Dictionary::Entry *entry = getVariableEntry(varName); |
| 1061 | return entry ? entry->getIntValue() : def; |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | F32 getFloatVariable(const char *varName, F32 def) |
| 1066 | { |
no test coverage detected