/* Load the constructor stats */ static bool bufferSCONSTRLoad(const char *fileName, void **ppData) { if (!loadConstructStats(fileName) || !allocComponentList(COMP_CONSTRUCT, numConstructStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the constructor stats */ static bool bufferSCONSTRLoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_SCONSTR); if (!loadConstructStats(pBuffer, size) || !allocComponentList(COMP_CONSTRUCT, numConstructStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the constructor stats */ static bool bufferSCONSTRLoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_SCONSTR); if (!loadConstructStats(ini) || !allocComponentList(COMP_CONSTRUCT, numConstructStats)) { return false; } //not interested in this value *ppData = nullptr; return true; }