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

Function getDocsURL

Engine/source/console/consoleFunctions.cpp:2896–2911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2894}
2895
2896bool getDocsURL(void* obj, const char* array, const char* data)
2897{
2898 ConsoleObject* cObj = static_cast<ConsoleObject*>(obj);
2899 //if (cObj->mDocsClick)
2900 {
2901
2902 String docpage = String(cObj->findField(StringTable->insert("docsURL"))->pFieldDocs);
2903 //strip wrapper
2904 docpage.replace("<a:", "");
2905 docpage.replace(">docs</a>", "");
2906 Con::errorf("%s", docpage.c_str());
2907 gotoWebPage(docpage.c_str());
2908 }
2909 //cObj->mDocsClick = !cObj->mDocsClick;
2910 return false;
2911}
2912
2913#endif

Callers

nothing calls this directly

Calls 7

gotoWebPageFunction · 0.85
replaceMethod · 0.80
StringClass · 0.70
errorfFunction · 0.70
findFieldMethod · 0.45
insertMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected