remove some redundant stuff

This commit is contained in:
ohyzha
2025-02-18 10:43:14 +02:00
parent 475442e086
commit 21c49ee91d

View File

@@ -86,15 +86,13 @@ namespace OpenVulkano
{ {
AddFile(sDirName.c_str(), inArchiveDirName.c_str()); AddFile(sDirName.c_str(), inArchiveDirName.c_str());
} }
std::string fPath;
for(const auto& entry : std::filesystem::directory_iterator(dirName)) for(const auto& entry : std::filesystem::directory_iterator(dirName))
{ {
fPath.clear(); const std::string fPath = prefix + entry.path().filename().string();
fPath = prefix + entry.path().filename().string();
if (entry.is_directory()) AddFiles(entry, fPath); if (entry.is_directory()) AddFiles(entry, fPath);
else else
{ {
std::string entryName = entry.path().string(); const std::string entryName = entry.path().string();
AddFile(entryName.c_str(), fPath.c_str()); AddFile(entryName.c_str(), fPath.c_str());
} }
} }