summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar mailwl2016-02-28 17:12:01 +0300
committerGravatar mailwl2016-03-04 15:59:02 +0300
commitd6be7ff6830797e412d1ce32977985ca35c179db (patch)
tree8ff8819d73d16945e6c2aedbbf4fafd369032aac /src
parentMerge pull request #1448 from bunnei/remove-glfw (diff)
downloadyuzu-d6be7ff6830797e412d1ce32977985ca35c179db.tar.gz
yuzu-d6be7ff6830797e412d1ce32977985ca35c179db.tar.xz
yuzu-d6be7ff6830797e412d1ce32977985ca35c179db.zip
ac:u: Stub IsConnected
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/ac_u.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/hle/service/ac_u.cpp b/src/core/hle/service/ac_u.cpp
index c48259e13..d67325506 100644
--- a/src/core/hle/service/ac_u.cpp
+++ b/src/core/hle/service/ac_u.cpp
@@ -22,12 +22,27 @@ static void GetWifiStatus(Service::Interface* self) {
22 // TODO(purpasmart96): This function is only a stub, 22 // TODO(purpasmart96): This function is only a stub,
23 // it returns a valid result without implementing full functionality. 23 // it returns a valid result without implementing full functionality.
24 24
25 cmd_buff[1] = 0; // No error 25 cmd_buff[1] = RESULT_SUCCESS.raw; // No error
26 cmd_buff[2] = 0; // Connection type set to none 26 cmd_buff[2] = 0; // Connection type set to none
27 27
28 LOG_WARNING(Service_AC, "(STUBBED) called"); 28 LOG_WARNING(Service_AC, "(STUBBED) called");
29} 29}
30 30
31/**
32 * AC_U::IsConnected service function
33 * Outputs:
34 * 1 : Result of function, 0 on success, otherwise error code
35 * 2 : bool, is connected
36 */
37static void IsConnected(Service::Interface* self) {
38 u32* cmd_buff = Kernel::GetCommandBuffer();
39
40 cmd_buff[1] = RESULT_SUCCESS.raw; // No error
41 cmd_buff[2] = false; // Not connected to ac:u service
42
43 LOG_WARNING(Service_AC, "(STUBBED) called");
44}
45
31const Interface::FunctionInfo FunctionTable[] = { 46const Interface::FunctionInfo FunctionTable[] = {
32 {0x00010000, nullptr, "CreateDefaultConfig"}, 47 {0x00010000, nullptr, "CreateDefaultConfig"},
33 {0x00040006, nullptr, "ConnectAsync"}, 48 {0x00040006, nullptr, "ConnectAsync"},
@@ -44,7 +59,7 @@ const Interface::FunctionInfo FunctionTable[] = {
44 {0x002D0082, nullptr, "SetRequestEulaVersion"}, 59 {0x002D0082, nullptr, "SetRequestEulaVersion"},
45 {0x00300004, nullptr, "RegisterDisconnectEvent"}, 60 {0x00300004, nullptr, "RegisterDisconnectEvent"},
46 {0x003C0042, nullptr, "GetAPSSIDList"}, 61 {0x003C0042, nullptr, "GetAPSSIDList"},
47 {0x003E0042, nullptr, "IsConnected"}, 62 {0x003E0042, IsConnected, "IsConnected"},
48 {0x00400042, nullptr, "SetClientVersion"}, 63 {0x00400042, nullptr, "SetClientVersion"},
49}; 64};
50 65