This commit is contained in:
duckdoom4
2023-01-18 10:57:16 +01:00
parent b8412c2556
commit 1609b9c4e4
36 changed files with 3377 additions and 226 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
namespace pkNX.Containers.VFS;
@@ -21,16 +22,31 @@ public void Dispose()
GC.SuppressFinalize(this);
}
public IEnumerable<FileSystemPath> GetEntities(FileSystemPath path)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IEnumerable<FileSystemPath> GetEntityPaths(FileSystemPath path)
{
return FileSystem.GetEntities(path);
return FileSystem.GetEntityPaths(path);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IEnumerable<FileSystemPath> GetDirectoryPaths(FileSystemPath path)
{
return FileSystem.GetDirectoryPaths(path);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IEnumerable<FileSystemPath> GetFilePaths(FileSystemPath path)
{
return FileSystem.GetFilePaths(path);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool Exists(FileSystemPath path)
{
return FileSystem.Exists(path);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Stream OpenFile(FileSystemPath path, FileAccess access)
{
if (access != FileAccess.Read)