nim_u.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/hle.h"
  5. #include "core/hle/service/nim_u.h"
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////
  7. // Namespace NIM_U
  8. namespace NIM_U {
  9. /**
  10. * NIM_U::CheckSysUpdateAvailable service function
  11. * Inputs:
  12. * 1 : None
  13. * Outputs:
  14. * 1 : Result of function, 0 on success, otherwise error code
  15. * 2 : flag, 0 = no system update available, 1 = system update available.
  16. */
  17. static void CheckSysUpdateAvailable(Service::Interface* self) {
  18. u32* cmd_buff = Kernel::GetCommandBuffer();
  19. cmd_buff[1] = RESULT_SUCCESS.raw;
  20. cmd_buff[2] = 0; // No update available
  21. LOG_WARNING(Service_NWM, "(STUBBED) called");
  22. }
  23. const Interface::FunctionInfo FunctionTable[] = {
  24. {0x00010000, nullptr, "StartSysUpdate"},
  25. {0x00020000, nullptr, "GetUpdateDownloadProgress"},
  26. {0x00040000, nullptr, "FinishTitlesInstall"},
  27. {0x00050000, nullptr, "CheckForSysUpdateEvent"},
  28. {0x00090000, CheckSysUpdateAvailable, "CheckSysUpdateAvailable"},
  29. {0x000A0000, nullptr, "GetState"},
  30. };
  31. ////////////////////////////////////////////////////////////////////////////////////////////////////
  32. // Interface class
  33. Interface::Interface() {
  34. Register(FunctionTable);
  35. }
  36. } // namespace