ac_u.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/hle/service/ac_u.h"
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////
  7. // Namespace AC_U
  8. namespace AC_U {
  9. /**
  10. * AC_U::GetWifiStatus service function
  11. * Outputs:
  12. * 1 : Result of function, 0 on success, otherwise error code
  13. * 2 : Output connection type, 0 = none, 1 = Old3DS Internet, 2 = New3DS Internet.
  14. */
  15. static void GetWifiStatus(Service::Interface* self) {
  16. u32* cmd_buff = Kernel::GetCommandBuffer();
  17. // TODO(purpasmart96): This function is only a stub,
  18. // it returns a valid result without implementing full functionality.
  19. cmd_buff[1] = 0; // No error
  20. cmd_buff[2] = 0; // Connection type set to none
  21. LOG_WARNING(Service_AC, "(STUBBED) called");
  22. }
  23. const Interface::FunctionInfo FunctionTable[] = {
  24. {0x00010000, nullptr, "CreateDefaultConfig"},
  25. {0x00040006, nullptr, "ConnectAsync"},
  26. {0x00050002, nullptr, "GetConnectResult"},
  27. {0x00080004, nullptr, "CloseAsync"},
  28. {0x00090002, nullptr, "GetCloseResult"},
  29. {0x000A0000, nullptr, "GetLastErrorCode"},
  30. {0x000D0000, GetWifiStatus, "GetWifiStatus"},
  31. {0x000E0042, nullptr, "GetCurrentAPInfo"},
  32. {0x00100042, nullptr, "GetCurrentNZoneInfo"},
  33. {0x00110042, nullptr, "GetNZoneApNumService"},
  34. {0x00240042, nullptr, "AddDenyApType"},
  35. {0x00270002, nullptr, "GetInfraPriority"},
  36. {0x002D0082, nullptr, "SetRequestEulaVersion"},
  37. {0x00300004, nullptr, "RegisterDisconnectEvent"},
  38. {0x003C0042, nullptr, "GetAPSSIDList"},
  39. {0x003E0042, nullptr, "IsConnected"},
  40. {0x00400042, nullptr, "SetClientVersion"},
  41. };
  42. ////////////////////////////////////////////////////////////////////////////////////////////////////
  43. // Interface class
  44. Interface::Interface() {
  45. Register(FunctionTable);
  46. }
  47. } // namespace