diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-10 21:45:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 21:45:29 -0500 |
commit | 1aa91062441ff136768535d5a0e9c7f2d476ab4a (patch) | |
tree | cec443922833343cbd8139f29b7c56512f55180d | |
parent | 01ab4aab914ae4f9ca18deee5d1e801ac98bd3ac (diff) | |
parent | f3a555a48437a06232a54cfc99a9ea43b365464a (diff) |
Merge pull request #1883 from lioncash/log-fsp
service/fsp_srv: Correct returned value in GetGlobalAccessLogMode()
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index d2ffd5776..63fa48133 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -796,9 +796,18 @@ void FSP_SRV::OpenSaveDataInfoReaderBySaveDataSpaceId(Kernel::HLERequestContext& void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_FS, "(STUBBED) called"); + enum class LogMode : u32 { + Off, + Log, + RedirectToSdCard, + LogToSdCard = Log | RedirectToSdCard, + }; + + // Given we always want to receive logging information, + // we always specify logging as enabled. IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(5); + rb.PushEnum(LogMode::Log); } void FSP_SRV::OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx) { |