aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2020-03-03 07:07:06 -0700
committerGitHub <noreply@github.com>2020-03-03 15:07:06 +0100
commitcecbd256a5b95cce815fcbbffc40b3898c319d9f (patch)
treeda5b37ed1d93fa4054c7d5ff846256f0241c6e6c /Ryujinx.HLE/HOS/Services/Fs/IDeviceOperator.cs
parentdc97457bf0121b9383054ca14d3c525b56b92634 (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.cs11
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)