Add support for cache storage (#936)

* Update LibHac

* Run EnsureApplicationCacheStorage when launching a game

* Add new FS commands
This commit is contained in:
Alex Barney 2020-03-03 07:07:06 -07:00 committed by GitHub
parent dc97457bf0
commit cecbd256a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 63 additions and 10 deletions

View file

@ -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)