diff options
author | Ac_K <Acoustik666@gmail.com> | 2024-01-26 02:43:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 02:43:15 +0100 |
commit | cea204d48e3853e51e28ace959a1226b4468373e (patch) | |
tree | a65b2c16e6916c4ef6514c7d7b7cb6e2da0eaf56 /src | |
parent | 35fb409e85ef07b8e1c3a582cdc6615e6da71429 (diff) |
Fs: Log when Commit fails due to PathAlreadyInUse (#6178)1.1.1137
* Fs: Log when Commit fails due to PathAlreadyInUse
This fixes and superseed #5418, nothing more.
(See original PR for description)
Co-Authored-By: James R T <jamestiotio@gmail.com>
* Update IFileSystem.cs
---------
Co-authored-by: James R T <jamestiotio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/IFileSystem.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/IFileSystem.cs b/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/IFileSystem.cs index 66020d57..e19d1791 100644 --- a/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/IFileSystem.cs +++ b/src/Ryujinx.HLE/HOS/Services/Fs/FileSystemProxy/IFileSystem.cs @@ -2,6 +2,7 @@ using LibHac; using LibHac.Common; using LibHac.Fs; using LibHac.Fs.Fsa; +using Ryujinx.Common.Logging; using Path = LibHac.FsSrv.Sf.Path; namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy @@ -149,7 +150,13 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy // Commit() public ResultCode Commit(ServiceCtx context) { - return (ResultCode)_fileSystem.Get.Commit().Value; + ResultCode resultCode = (ResultCode)_fileSystem.Get.Commit().Value; + if (resultCode == ResultCode.PathAlreadyInUse) + { + Logger.Warning?.Print(LogClass.ServiceFs, "The file system is already in use by another process."); + } + + return resultCode; } [CommandCmif(11)] |