mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Reverted extractToFolder() for texts, to old stand alone version.
This commit is contained in:
parent
923d4e6e6b
commit
35db24a443
@ -231,7 +231,15 @@ void CArchiveLoader::extractToFolder(const std::string & outputSubFolder, const
|
||||
{
|
||||
std::unique_ptr<CInputStream> inputStream = load(ResourceID(mountPoint + entry.name));
|
||||
|
||||
extractToFolder(outputSubFolder, *inputStream, entry);
|
||||
std::vector<ui8> data(entry.fullSize);
|
||||
inputStream->read(data.data(), entry.fullSize);
|
||||
|
||||
bfs::path extractedFilePath = createExtractedFilePath(outputSubFolder, entry.name);
|
||||
|
||||
// writeToOutputFile
|
||||
std::ofstream out(extractedFilePath.string(), std::ofstream::binary);
|
||||
out.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||
out.write((char*)data.data(), entry.fullSize);
|
||||
}
|
||||
|
||||
bfs::path createExtractedFilePath(const std::string & outputSubFolder, const std::string & entryName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user