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());
}
std::string fPath;
for(const auto& entry : std::filesystem::directory_iterator(dirName))
{
fPath.clear();
fPath = prefix + entry.path().filename().string();
const std::string fPath = prefix + entry.path().filename().string();
if (entry.is_directory()) AddFiles(entry, fPath);
else
{
std::string entryName = entry.path().string();
const std::string entryName = entry.path().string();
AddFile(entryName.c_str(), fPath.c_str());
}
}