/* Load the Propulsion stats */ static bool bufferSPROPLoad(const char* fileName, void** ppData) { if (!loadPropulsionStats(fileName) || !allocComponentList(COMP_PROPULSION, numPropulsionStats)) { return false; } //not interested in this value *ppData = (void *)1; return true; }
/* Load the Propulsion stats */ static bool bufferSPROPLoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_SPROP); if (!loadPropulsionStats(pBuffer, size) || !allocComponentList(COMP_PROPULSION, numPropulsionStats)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the Propulsion stats */ static bool bufferSPROPLoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_SPROP); if (!loadPropulsionStats(ini) || !allocComponentList(COMP_PROPULSION, numPropulsionStats)) { return false; } //not interested in this value *ppData = (void *)1; return true; }