mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-07 16:59:08 +00:00
Fix extraction regex
Accidentally removed this in the commit...
This commit is contained in:
@@ -50,7 +50,7 @@ Result getExtractedSize(const std::string &archivePath, const std::string &wante
|
|||||||
int size = archive_entry_size(entry);
|
int size = archive_entry_size(entry);
|
||||||
if (size > 0) { /* Ignore folders. */
|
if (size > 0) { /* Ignore folders. */
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
std::string entryName();
|
std::string entryName(archive_entry_pathname(entry));
|
||||||
if (std::regex_search(entryName, match, std::regex(wantedFile))) {
|
if (std::regex_search(entryName, match, std::regex(wantedFile))) {
|
||||||
extractSize += size;
|
extractSize += size;
|
||||||
extractFilesCount++;
|
extractFilesCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user