From 7b226d40803c9e8cf9ff6a8e305d82a78aec7839 Mon Sep 17 00:00:00 2001 From: mailwl Date: Thu, 19 May 2016 14:25:48 +0300 Subject: [PATCH] Log 'SDK version' input parameter --- src/core/hle/service/ac_u.cpp | 4 ++-- src/core/hle/service/frd/frd.cpp | 4 ++-- src/core/hle/service/fs/fs_user.cpp | 6 ++++-- src/core/hle/service/mic_u.cpp | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/core/hle/service/ac_u.cpp b/src/core/hle/service/ac_u.cpp index 19dc5c330..bc2589232 100644 --- a/src/core/hle/service/ac_u.cpp +++ b/src/core/hle/service/ac_u.cpp @@ -79,9 +79,9 @@ static void SetClientVersion(Service::Interface* self) { self->SetVersion(cmd_buff[1]); - cmd_buff[1] = RESULT_SUCCESS.raw; // No error + LOG_WARNING(Service_AC, "(STUBBED) called, version: 0x%08X", cmd_buff[1]); - LOG_WARNING(Service_AC, "(STUBBED) called"); + cmd_buff[1] = RESULT_SUCCESS.raw; // No error } const Interface::FunctionInfo FunctionTable[] = { diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp index 821677e52..d4718080f 100644 --- a/src/core/hle/service/frd/frd.cpp +++ b/src/core/hle/service/frd/frd.cpp @@ -106,9 +106,9 @@ void SetClientSdkVersion(Service::Interface* self) { self->SetVersion(cmd_buff[1]); - cmd_buff[1] = RESULT_SUCCESS.raw; // No error + LOG_WARNING(Service_FRD, "(STUBBED) called, version: 0x%08X", cmd_buff[1]); - LOG_WARNING(Service_AC, "(STUBBED) called"); + cmd_buff[1] = RESULT_SUCCESS.raw; // No error } void Init() { diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index 19f9775d4..33a1a9996 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp @@ -684,9 +684,11 @@ static void InitializeWithSdkVersion(Service::Interface* self) { self->SetVersion(cmd_buff[1]); - cmd_buff[1] = RESULT_SUCCESS.raw; + ASSERT_MSG(cmd_buff[2] == 0x20, "ProcessId Header must be 0x20"); - LOG_WARNING(Service_FS, "(STUBBED) called"); + LOG_WARNING(Service_FS, "(STUBBED) called, version: 0x%08X", cmd_buff[1]); + + cmd_buff[1] = RESULT_SUCCESS.raw; } /** diff --git a/src/core/hle/service/mic_u.cpp b/src/core/hle/service/mic_u.cpp index af4cd5c46..545c2360d 100644 --- a/src/core/hle/service/mic_u.cpp +++ b/src/core/hle/service/mic_u.cpp @@ -23,9 +23,9 @@ static void SetClientVersion(Service::Interface* self) { self->SetVersion(cmd_buff[1]); - cmd_buff[1] = RESULT_SUCCESS.raw; // No error + LOG_WARNING(Service_MIC, "(STUBBED) called, version: 0x%08X", cmd_buff[1]); - LOG_WARNING(Service_MIC, "(STUBBED) called"); + cmd_buff[1] = RESULT_SUCCESS.raw; // No error }