Fix windows build issues
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user