| 494 | } |
| 495 | |
| 496 | bool 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 | |
| 526 | bool CScriptObject::GetUDValueChain(const char *sKey, USER_DATA &nValue, int &nCookie) //AMD Port |