remove some redundant stuff
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user