mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Set extractingFile to name of current file
(forgot since was unused)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user