Fixed MappingFileSystemAdapter::adjustPath() on Windows.

This commit is contained in:
Patrick 2025-03-07 14:28:23 +01:00
parent 1c0c928856
commit c5b9c02342

View File

@ -115,7 +115,7 @@ StreamError MappingFileSystemAdapter<TWrapped>::open(const fs::path& path, FileO
template<typename TWrapped>
bool MappingFileSystemAdapter<TWrapped>::adjustPath(fs::path& path) const MIJIN_NOEXCEPT
{
if (!path.is_absolute())
if (path.empty() || *path.generic_string().c_str() != '/')
{
return false;
}