diff --git a/src/Ryujinx.HLE/HOS/ModLoader.cs b/src/Ryujinx.HLE/HOS/ModLoader.cs index 0aee03919d..a429fa8601 100644 --- a/src/Ryujinx.HLE/HOS/ModLoader.cs +++ b/src/Ryujinx.HLE/HOS/ModLoader.cs @@ -18,7 +18,7 @@ using System.Collections.Specialized; using System.Globalization; using System.IO; using System.Linq; -using ILazyFile = Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy.ILazyFile; +using LazyFile = Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy.LazyFile; using Path = System.IO.Path; namespace Ryujinx.HLE.HOS @@ -569,7 +569,7 @@ namespace Ryujinx.HLE.HOS .Where(f => f.Type == DirectoryEntryType.File) .OrderBy(f => f.FullPath, StringComparer.Ordinal)) { - var file = new ILazyFile(entry.FullPath, rootPath, fs); + var file = new LazyFile(entry.FullPath, rootPath, fs); if (fileSet.Add(entry.FullPath)) { diff --git a/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/ILazyFile.cs b/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/LazyFile.cs similarity index 91% rename from src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/ILazyFile.cs rename to src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/LazyFile.cs index 9258a904db..a179e8e381 100644 --- a/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/ILazyFile.cs +++ b/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/LazyFile.cs @@ -6,14 +6,14 @@ using System.IO; namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy { - public class ILazyFile : LibHac.Fs.Fsa.IFile + class LazyFile : LibHac.Fs.Fsa.IFile { private readonly LibHac.Fs.Fsa.IFileSystem _fs; private readonly string _filePath; private readonly UniqueRef _fileReference = new(); private readonly FileInfo _fileInfo; - public ILazyFile(string filePath, string prefix, LibHac.Fs.Fsa.IFileSystem fs) + public LazyFile(string filePath, string prefix, LibHac.Fs.Fsa.IFileSystem fs) { _fs = fs; _filePath = filePath; @@ -54,7 +54,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy { size = _fileInfo.Length; - return new Result(0); + return Result.Success; } protected override Result DoOperateRange(Span outBuffer, OperationId operationId, long offset, long size, ReadOnlySpan inBuffer)