| 780 | // https://wowdev.wiki/TACT#Install_manifest |
| 781 | |
| 782 | static 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 | |
| 806 | static bool InsertWellKnownFile(TCascStorage * hs, const char * szFileName, CASC_CKEY_ENTRY & FakeCKeyEntry, DWORD dwFlags = 0) |
| 807 | { |
no test coverage detected