Fix windows build issues

This commit is contained in:
2021-02-10 02:43:11 +01:00
parent 9584ec77f1
commit 339afdcfa1
2 changed files with 17 additions and 11 deletions

View File

@@ -87,9 +87,10 @@ namespace openVulkanoCpp
std::regex fileRegex(fileNamePattern);
for(auto const& dirEntry : std::filesystem::directory_iterator(dir))
{
if (std::regex_match(dirEntry.path().native(), fileRegex))
std::string entryPath = dirEntry.path().string();
if (std::regex_match(entryPath, fileRegex))
{
files.push_back(dirEntry.path().native());
files.push_back(std::move(entryPath));
}
}
@@ -138,7 +139,7 @@ namespace openVulkanoCpp
bool ArchiveReader::SkipTill(std::filesystem::file_type type)
{
mode_t typeId = LibArchiveHelper::FILE_TYPE_MAP[static_cast<int>(type)];
mode_t typeId = LibArchiveHelper::GetFileType(type);
if (typeId == AE_IFMT) throw std::invalid_argument("Invalid file type");
while(HasNext() && archive_entry_filetype(m_archiveEntry) != typeId)
{