mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Fs: Log when Commit fails due to PathAlreadyInUse (#6178)
* 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>
This commit is contained in:
parent
35fb409e85
commit
cea204d48e
1 changed files with 8 additions and 1 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue