diff options
| author | Alex Barney <thealexbarney@gmail.com> | 2020-03-03 07:07:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-03 15:07:06 +0100 |
| commit | cecbd256a5b95cce815fcbbffc40b3898c319d9f (patch) | |
| tree | da5b37ed1d93fa4054c7d5ff846256f0241c6e6c /Ryujinx.HLE/HOS/Services/Mii | |
| parent | dc97457bf0121b9383054ca14d3c525b56b92634 (diff) | |
Add support for cache storage (#936)
* Update LibHac
* Run EnsureApplicationCacheStorage when launching a game
* Add new FS commands
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Mii')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Mii/MiiDatabaseManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Mii/MiiDatabaseManager.cs b/Ryujinx.HLE/HOS/Services/Mii/MiiDatabaseManager.cs index 30bcab95..6ba1b2bf 100644 --- a/Ryujinx.HLE/HOS/Services/Mii/MiiDatabaseManager.cs +++ b/Ryujinx.HLE/HOS/Services/Mii/MiiDatabaseManager.cs @@ -132,7 +132,7 @@ namespace Ryujinx.HLE.HOS.Services.Mii if (result.IsFailure()) { - if (ResultFs.TargetNotFound == result) + if (ResultFs.TargetNotFound.Includes(result)) { // TODO: We're currently always specifying the owner ID because FS doesn't have a way of // knowing which process called it @@ -212,7 +212,7 @@ namespace Ryujinx.HLE.HOS.Services.Mii return (ResultCode)result.Value; } - else if (result == ResultFs.PathNotFound) + else if (ResultFs.PathNotFound.Includes(result)) { return (ResultCode)ForceSaveDatabase().Value; } @@ -224,7 +224,7 @@ namespace Ryujinx.HLE.HOS.Services.Mii { Result result = _filesystemClient.CreateFile(DatabasePath, Unsafe.SizeOf<NintendoFigurineDatabase>()); - if (result.IsSuccess() || result == ResultFs.PathAlreadyExists) + if (result.IsSuccess() || ResultFs.PathAlreadyExists.Includes(result)) { result = _filesystemClient.OpenFile(out FileHandle handle, DatabasePath, OpenMode.Write); |
