summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ac_u.cpp
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/ac_u.cpp
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/ac_u.cpp')
-rw-r--r--src/core/hle/service/ac_u.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/core/hle/service/ac_u.cpp b/src/core/hle/service/ac_u.cpp
index 18026975f..fe367aca5 100644
--- a/src/core/hle/service/ac_u.cpp
+++ b/src/core/hle/service/ac_u.cpp
@@ -230,6 +230,24 @@ static void IsConnected(Service::Interface* self) {
LOG_WARNING(Service_AC, "(STUBBED) called");
}
+/**
+ * AC_U::SetClientVersion service function
+ * Inputs:
+ * 1 : Used SDK Version
+ * Outputs:
+ * 1 : Result of function, 0 on success, otherwise error code
+ */
+static void SetClientVersion(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ const u32 version = cmd_buff[1];
+ self->SetVersion(version);
+
+ LOG_WARNING(Service_AC, "(STUBBED) called, version: 0x%08X", version);
+
+ cmd_buff[1] = RESULT_SUCCESS.raw; // No error
+}
+
const Interface::FunctionInfo FunctionTable[] = {
{0x00010000, CreateDefaultConfig, "CreateDefaultConfig"},
{0x00040006, ConnectAsync, "ConnectAsync"},
@@ -250,7 +268,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x00300004, RegisterDisconnectEvent, "RegisterDisconnectEvent"},
{0x003C0042, nullptr, "GetAPSSIDList"},
{0x003E0042, IsConnected, "IsConnected"},
- {0x00400042, nullptr, "SetClientVersion"},
+ {0x00400042, SetClientVersion, "SetClientVersion"},
};
////////////////////////////////////////////////////////////////////////////////////////////////////