Set extractingFile to name of current file

(forgot since was unused)
This commit is contained in:
Epicpkmn11 2019-12-21 16:27:21 -06:00
commit e8c5e345c5

View file

@ -49,6 +49,7 @@ Result extractArchive(std::string archivePath, std::string wantedFile, std::stri
std::string entryName(archive_entry_pathname(entry));
std::smatch match;
if(std::regex_search(entryName, match, std::regex(wantedFile))) {
extractingFile = (entryName.length() > wantedFile.length() ? entryName.substr(wantedFile.length()) : wantedFile);
ret = EXTRACT_ERROR_NONE;
// make directories