summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/frd
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2016-11-20 06:50:48 +0100
committermailwl <mailwl@gmail.com>2016-11-30 07:51:14 +0100
commit5b136aa21198dc98296bde3dd393bfc5468d7703 (patch)
tree49e48570abc750b3f51e4e5c57ec98fba52c3229 /src/core/hle/service/frd
parentMerge pull request #2233 from Subv/warnings (diff)
downloadyuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.gz
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.bz2
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.lz
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.xz
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.tar.zst
yuzu-5b136aa21198dc98296bde3dd393bfc5468d7703.zip
Diffstat (limited to 'src/core/hle/service/frd')
-rw-r--r--src/core/hle/service/frd/frd.cpp12
-rw-r--r--src/core/hle/service/frd/frd.h9
-rw-r--r--src/core/hle/service/frd/frd_u.cpp2
3 files changed, 22 insertions, 1 deletions
diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp
index 1d16f8732..34fdf7f53 100644
--- a/src/core/hle/service/frd/frd.cpp
+++ b/src/core/hle/service/frd/frd.cpp
@@ -100,6 +100,18 @@ void GetMyScreenName(Service::Interface* self) {
LOG_WARNING(Service_FRD, "(STUBBED) called");
}
+void SetClientSdkVersion(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ const u32 version = cmd_buff[1];
+
+ self->SetVersion(version);
+
+ LOG_WARNING(Service_FRD, "(STUBBED) called, version: 0x%08X", version);
+
+ cmd_buff[1] = RESULT_SUCCESS.raw; // No error
+}
+
void Init() {
using namespace Kernel;
diff --git a/src/core/hle/service/frd/frd.h b/src/core/hle/service/frd/frd.h
index c8283a7f3..e61940ea0 100644
--- a/src/core/hle/service/frd/frd.h
+++ b/src/core/hle/service/frd/frd.h
@@ -95,6 +95,15 @@ void GetMyFriendKey(Service::Interface* self);
*/
void GetMyScreenName(Service::Interface* self);
+/**
+ * FRD::SetClientSdkVersion service function
+ * Inputs:
+ * 1 : Used SDK Version
+ * Outputs:
+ * 1 : Result of function, 0 on success, otherwise error code
+ */
+void SetClientSdkVersion(Service::Interface* self);
+
/// Initialize FRD service(s)
void Init();
diff --git a/src/core/hle/service/frd/frd_u.cpp b/src/core/hle/service/frd/frd_u.cpp
index bd1c9c16b..496f29ca9 100644
--- a/src/core/hle/service/frd/frd_u.cpp
+++ b/src/core/hle/service/frd/frd_u.cpp
@@ -58,7 +58,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x002F0040, nullptr, "AllowHalfAwake"},
{0x00300000, nullptr, "GetServerTypes"},
{0x00310082, nullptr, "GetFriendComment"},
- {0x00320042, nullptr, "SetClientSdkVersion"},
+ {0x00320042, SetClientSdkVersion, "SetClientSdkVersion"},
{0x00330000, nullptr, "GetMyApproachContext"},
{0x00340046, nullptr, "AddFriendWithApproach"},
{0x00350082, nullptr, "DecryptApproachContext"},