summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-07 17:52:51 -0500
committerGravatar Lioncash2018-12-09 20:42:35 -0500
commitf3a555a48437a06232a54cfc99a9ea43b365464a (patch)
treeb334e647e128686047d3c5b3550dc0821cf911ff /src/core
parentMerge pull request #1867 from lioncash/alloc (diff)
downloadyuzu-f3a555a48437a06232a54cfc99a9ea43b365464a.tar.gz
yuzu-f3a555a48437a06232a54cfc99a9ea43b365464a.tar.xz
yuzu-f3a555a48437a06232a54cfc99a9ea43b365464a.zip
service/fsp_srv: Correct returned value in GetGlobalAccessLogMode()
Based off RE, the backing code only ever seems to use 0-2 as the range of values 1 being a generic log enable, with 2 indicating logging should go to the SD card. These are used as a set of flags internally. Given we only care about receiving the log in general, we can just always signify that we want logging in general.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp11
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&
796void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) { 796void FSP_SRV::GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx) {
797 LOG_WARNING(Service_FS, "(STUBBED) called"); 797 LOG_WARNING(Service_FS, "(STUBBED) called");
798 798
799 enum class LogMode : u32 {
800 Off,
801 Log,
802 RedirectToSdCard,
803 LogToSdCard = Log | RedirectToSdCard,
804 };
805
806 // Given we always want to receive logging information,
807 // we always specify logging as enabled.
799 IPC::ResponseBuilder rb{ctx, 3}; 808 IPC::ResponseBuilder rb{ctx, 3};
800 rb.Push(RESULT_SUCCESS); 809 rb.Push(RESULT_SUCCESS);
801 rb.Push<u32>(5); 810 rb.PushEnum(LogMode::Log);
802} 811}
803 812
804void FSP_SRV::OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx) { 813void FSP_SRV::OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx) {