MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / ParseFile_BuildDb

Function ParseFile_BuildDb

src/External/CascLib/src/CascFiles.cpp:772–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772static DWORD ParseFile_BuildDb(TCascStorage * hs, CASC_CSV & Csv)
773{
774 DWORD dwErrCode;
775
776 // Extract the CDN build key
777 dwErrCode = LoadQueryKey(Csv[CSV_ZERO][CSV_ZERO], hs->CdnBuildKey);
778 if(dwErrCode != ERROR_SUCCESS)
779 return dwErrCode;
780
781 // Extract the CDN config key
782 dwErrCode = LoadQueryKey(Csv[CSV_ZERO][1], hs->CdnConfigKey);
783 if(dwErrCode != ERROR_SUCCESS)
784 return dwErrCode;
785
786 // Extract tags
787 hs->dwDefaultLocale = GetDefaultLocaleMask(Csv[CSV_ZERO][2]);
788
789 // Verify all variables
790 return (hs->CdnBuildKey.pbData != NULL && hs->CdnConfigKey.pbData != NULL) ? ERROR_SUCCESS : ERROR_BAD_FORMAT;
791}
792
793static DWORD ParseFile_CdnConfig(TCascStorage * hs, void * pvListFile)
794{

Callers

nothing calls this directly

Calls 2

LoadQueryKeyFunction · 0.85
GetDefaultLocaleMaskFunction · 0.85

Tested by

no test coverage detected