Silence warnings and fix bugs

This commit is contained in:
Georg Hagen
2025-02-12 13:21:30 +01:00
parent c2b8dcb408
commit 4da64d2d42
7 changed files with 28 additions and 15 deletions

View File

@@ -46,6 +46,17 @@ namespace OpenVulkano
};
}
static FileDescription MkFile(const std::filesystem::path& path, const size_t size)
{
return {
std::filesystem::file_type::regular,
path.string(),
size,
std::filesystem::perms::owner_write | ALL_READ,
std::time(nullptr), std::time(nullptr)
};
}
static FileDescription MkDir(const char* path)
{
FileDescription desc = MkFile(path, 0);