diff options
| author | Shauren <shauren.trinity@gmail.com> | 2019-06-09 21:14:42 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2019-06-09 21:14:42 +0200 |
| commit | 138e822d859fd9ff9d79e1ce16823992ad43aec4 (patch) | |
| tree | f1e22a1afbaa3457e6169146f350c91b9493f926 /src/tools/map_extractor | |
| parent | c4f11447546836844ade509991b4219c88ebaaa3 (diff) | |
Dep/CascLib: Update to ladislav-zezula/CascLib@03a3bcaed285ab0d8ff0845a65ffe7d1fa653960
Diffstat (limited to 'src/tools/map_extractor')
| -rw-r--r-- | src/tools/map_extractor/System.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index dcbbc0547d0..ff05df3119c 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -1251,22 +1251,6 @@ bool ExtractDB2File(uint32 fileDataId, char const* cascFileName, int locale, boo readBytes = 0; if (!CASC::ReadFile(source.GetHandle(), buffer, std::min<DWORD>(fileSize, readBatchSize), &readBytes)) { - if (GetLastError() == ERROR_FILE_ENCRYPTED) - { - // shrink block size to read as much unencrypted data as possible - if (readBatchSize != 1) - { - readBatchSize = std::max<DWORD>(1, readBatchSize / 2); - continue; - } - - uint8 zero = 0; - --fileSize; - fwrite(&zero, 1, 1, output); - source.SetPosition(source.GetPosition() + 1); - continue; - } - printf("Can't read file '%s'\n", outputFileName.c_str()); fclose(output); boost::filesystem::remove(outputPath); |
