summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-05 08:10:25 +0100
committerbunnei <bunneidev@gmail.com>2016-03-05 08:10:25 +0100
commit987d85a33b749cf6f30b956228129eb30f578d2a (patch)
treea3243ffe19a4a45fc6645227df5c59aa81bd417e /src/core
parentMerge pull request #1389 from yuriks/stub-cam (diff)
parentac:u: Stub IsConnected (diff)
downloadyuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar.gz
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar.bz2
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar.lz
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar.xz
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.tar.zst
yuzu-987d85a33b749cf6f30b956228129eb30f578d2a.zip
Diffstat (limited to 'src/core')
-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) {
// TODO(purpasmart96): This function is only a stub,
// it returns a valid result without implementing full functionality.
- cmd_buff[1] = 0; // No error
+ cmd_buff[1] = RESULT_SUCCESS.raw; // No error
cmd_buff[2] = 0; // Connection type set to none
LOG_WARNING(Service_AC, "(STUBBED) called");
}
+/**
+ * AC_U::IsConnected service function
+ * Outputs:
+ * 1 : Result of function, 0 on success, otherwise error code
+ * 2 : bool, is connected
+ */
+static void IsConnected(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+
+ cmd_buff[1] = RESULT_SUCCESS.raw; // No error
+ cmd_buff[2] = false; // Not connected to ac:u service
+
+ LOG_WARNING(Service_AC, "(STUBBED) called");
+}
+
const Interface::FunctionInfo FunctionTable[] = {
{0x00010000, nullptr, "CreateDefaultConfig"},
{0x00040006, nullptr, "ConnectAsync"},
@@ -44,7 +59,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x002D0082, nullptr, "SetRequestEulaVersion"},
{0x00300004, nullptr, "RegisterDisconnectEvent"},
{0x003C0042, nullptr, "GetAPSSIDList"},
- {0x003E0042, nullptr, "IsConnected"},
+ {0x003E0042, IsConnected, "IsConnected"},
{0x00400042, nullptr, "SetClientVersion"},
};