mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-06 16:49:11 +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::string entryName(archive_entry_pathname(entry));
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
if(std::regex_search(entryName, match, std::regex(wantedFile))) {
|
if(std::regex_search(entryName, match, std::regex(wantedFile))) {
|
||||||
|
extractingFile = (entryName.length() > wantedFile.length() ? entryName.substr(wantedFile.length()) : wantedFile);
|
||||||
ret = EXTRACT_ERROR_NONE;
|
ret = EXTRACT_ERROR_NONE;
|
||||||
|
|
||||||
// make directories
|
// make directories
|
||||||
|
|||||||
Reference in New Issue
Block a user