MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zParamGetString

Function zParamGetString

src/SB/Game/zEnt.cpp:749–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749char* zParamGetString(xModelAssetParam* param, U32 size, char* tok, char* def)
750{
751 U32 hash = xStrHash(tok);
752
753 while (param != NULL && size != 0)
754 {
755 if (param->HashID == hash)
756 {
757 return (char*)param->String;
758 }
759
760 // S32 i = param->WordLength * 4;
761 size -= param->WordLength * 4 + 8;
762 param = (xModelAssetParam*)((char*)param + (param->WordLength * 4 + 8));
763 }
764 return def;
765}
766
767S32 zParamGetInt(xModelAssetParam* param, U32 size, const char* tok, S32 def)
768{

Callers 4

zParamGetIntFunction · 0.85
zParamGetFloatFunction · 0.85
zParamGetFloatListFunction · 0.85
zParamGetVectorFunction · 0.85

Calls 1

xStrHashFunction · 0.50

Tested by

no test coverage detected