/* Load the STERRTABLE stats */ static bool bufferSTERRTABLELoad(const char *fileName, void **ppData) { if (!loadTerrainTable(fileName)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the STERRTABLE stats */ static bool bufferSTERRTABLELoad(const char *pBuffer, UDWORD size, void **ppData) { calcDataHash((uint8_t *)pBuffer, size, DATA_STERRT); if (!loadTerrainTable(pBuffer, size)) { return false; } //not interested in this value *ppData = NULL; return true; }
/* Load the STERRTABLE stats */ static bool bufferSTERRTABLELoad(const char *fileName, void **ppData) { WzConfig ini(fileName, WzConfig::ReadOnlyAndRequired); calcDataHash(ini, DATA_STERRT); if (!loadTerrainTable(ini)) { return false; } //not interested in this value *ppData = nullptr; return true; }