MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / GetValueRecursive

Method GetValueRecursive

CryScriptSystem/ScriptObject.cpp:496–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496bool CScriptObject::GetValueRecursive( const char *szPath, IScriptObject *pObj )
497{
498 assert(pObj);
499 _GUARD_STACK(m_pLS);
500
501 const char *pSrc=szPath;
502
503 IScriptObject *pCurrent=this;
504
505 pObj->Clone(this);
506
507 while(*pSrc)
508 {
509 char szInterm[256],*pDst=szInterm;
510
511 while(*pSrc)
512 *pDst++=*pSrc++;
513
514 *pDst=0; // zero termination
515
516 if(!pCurrent->GetValue(szInterm,pObj))
517 return false;
518
519 pCurrent=pObj;
520 }
521
522 return true;
523}
524
525
526bool CScriptObject::GetUDValueChain(const char *sKey, USER_DATA &nValue, int &nCookie) //AMD Port

Callers

nothing calls this directly

Calls 2

CloneMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected