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