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/Fs/IDeviceOperator.cs | |
| 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/Fs/IDeviceOperator.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs b/Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs index 426b50ed..c9f2f74c 100644 --- a/Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs +++ b/Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs @@ -12,6 +12,17 @@ namespace Ryujinx.HLE.HOS.Services.Fs _baseOperator = baseOperator; } + [Command(0)] + // IsSdCardInserted() -> b8 is_inserted + public ResultCode IsSdCardInserted(ServiceCtx context) + { + Result result = _baseOperator.IsSdCardInserted(out bool isInserted); + + context.ResponseData.Write(isInserted); + + return (ResultCode)result.Value; + } + [Command(200)] // IsGameCardInserted() -> b8 is_inserted public ResultCode IsGameCardInserted(ServiceCtx context) |
