diff options
author | purpasmart96 <purpasmart96@users.noreply.github.com> | 2014-11-29 02:17:55 +0100 |
---|---|---|
committer | purpasmart96 <kanzoconfigz@hotmail.com> | 2014-12-03 00:30:42 +0100 |
commit | 32d420330d6dae46f673a2da49f7add9c3f6fcba (patch) | |
tree | 371abbd65d47b3c08520b2e712072e9ae6b8785e /src/core/hle/service | |
parent | Merge pull request #223 from linkmauve/remove-thread (diff) | |
download | yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar.gz yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar.bz2 yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar.lz yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar.xz yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.tar.zst yuzu-32d420330d6dae46f673a2da49f7add9c3f6fcba.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/ac_u.cpp | 20 |
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 9af96f6b8..46aee40d6 100644 --- a/src/core/hle/service/ac_u.cpp +++ b/src/core/hle/service/ac_u.cpp @@ -11,6 +11,24 @@ namespace AC_U { +/** + * AC_U::GetWifiStatus service function + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + * 2 : Output connection type, 0 = none, 1 = Old3DS Internet, 2 = New3DS Internet. + */ +void GetWifiStatus(Service::Interface* self) { + u32* cmd_buff = Service::GetCommandBuffer(); + + // 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[2] = 0; // Connection type set to none + + WARN_LOG(KERNEL, "(STUBBED) called"); +} + const Interface::FunctionInfo FunctionTable[] = { {0x00010000, nullptr, "CreateDefaultConfig"}, {0x00040006, nullptr, "ConnectAsync"}, @@ -18,7 +36,7 @@ const Interface::FunctionInfo FunctionTable[] = { {0x00080004, nullptr, "CloseAsync"}, {0x00090002, nullptr, "GetCloseResult"}, {0x000A0000, nullptr, "GetLastErrorCode"}, - {0x000D0000, nullptr, "GetWifiStatus"}, + {0x000D0000, GetWifiStatus, "GetWifiStatus"}, {0x000E0042, nullptr, "GetCurrentAPInfo"}, {0x00100042, nullptr, "GetCurrentNZoneInfo"}, {0x00110042, nullptr, "GetNZoneApNumService"}, |