/* Load the body stats */ static bool bufferSBODYLoad(const char* fileName, void** ppData) { if (!loadBodyStats(fileName) || !allocComponentList(COMP_BODY, numBodyStats)) { return false; } *ppData = (void *)1; return true; }
/* Load the body stats */ static bool bufferSBODYLoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_SBODY); if (!loadBodyStats(ini) || !allocComponentList(COMP_BODY, numBodyStats)) { return false; } *ppData = (void *)1; return true; }
/* Load the body stats */ static bool bufferSBODYLoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_SBODY); if (!loadBodyStats(pBuffer, size) || !allocComponentList(COMP_BODY, numBodyStats)) { return false; } // set a dummy value so the release function gets called *ppData = (void *)1; return true; }