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

Function LoadInstallManifest

src/External/CascLib/src/CascOpenStorage.cpp:782–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780// https://wowdev.wiki/TACT#Install_manifest
781
782static int LoadInstallManifest(TCascStorage * hs)
783{
784 PCASC_CKEY_ENTRY pCKeyEntry = FindCKeyEntry_CKey(hs, hs->InstallCKey.CKey);
785 CASC_BLOB InstallFile;
786 DWORD dwErrCode = ERROR_SUCCESS;
787
788 // Inform the user about what we are doing
789 if(InvokeProgressCallback(hs, "Loading INSTALL manifest", NULL, 0, 0))
790 return ERROR_CANCELLED;
791
792 // Load the entire DOWNLOAD file to memory
793 dwErrCode = LoadInternalFileToMemory(hs, pCKeyEntry, InstallFile);
794 if(dwErrCode == ERROR_SUCCESS && InstallFile.cbData != 0)
795 {
796 dwErrCode = RootHandler_CreateInstall(hs, InstallFile);
797 }
798 else
799 {
800 dwErrCode = GetCascError();
801 }
802
803 return dwErrCode;
804}
805
806static bool InsertWellKnownFile(TCascStorage * hs, const char * szFileName, CASC_CKEY_ENTRY & FakeCKeyEntry, DWORD dwFlags = 0)
807{

Callers 1

LoadCascStorageFunction · 0.85

Calls 5

FindCKeyEntry_CKeyFunction · 0.85
InvokeProgressCallbackFunction · 0.85
LoadInternalFileToMemoryFunction · 0.85
GetCascErrorFunction · 0.85

Tested by

no test coverage detected