aoc_u.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2018 yuzu emulator team
  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/ipc_helpers.h"
  6. #include "core/hle/service/aoc/aoc_u.h"
  7. namespace Service::AOC {
  8. AOC_U::AOC_U() : ServiceFramework("aoc:u") {
  9. static const FunctionInfo functions[] = {
  10. {0, nullptr, "CountAddOnContentByApplicationId"},
  11. {1, nullptr, "ListAddOnContentByApplicationId"},
  12. {2, &AOC_U::CountAddOnContent, "CountAddOnContent"},
  13. {3, &AOC_U::ListAddOnContent, "ListAddOnContent"},
  14. {4, nullptr, "GetAddOnContentBaseIdByApplicationId"},
  15. {5, nullptr, "GetAddOnContentBaseId"},
  16. {6, nullptr, "PrepareAddOnContentByApplicationId"},
  17. {7, nullptr, "PrepareAddOnContent"},
  18. {8, nullptr, "GetAddOnContentListChangedEvent"},
  19. };
  20. RegisterHandlers(functions);
  21. }
  22. AOC_U::~AOC_U() = default;
  23. void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
  24. IPC::ResponseBuilder rb{ctx, 4};
  25. rb.Push(RESULT_SUCCESS);
  26. rb.Push<u64>(0);
  27. LOG_WARNING(Service_AOC, "(STUBBED) called");
  28. }
  29. void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
  30. IPC::ResponseBuilder rb{ctx, 4};
  31. rb.Push(RESULT_SUCCESS);
  32. rb.Push<u64>(0);
  33. LOG_WARNING(Service_AOC, "(STUBBED) called");
  34. }
  35. void InstallInterfaces(SM::ServiceManager& service_manager) {
  36. std::make_shared<AOC_U>()->InstallAsService(service_manager);
  37. }
  38. } // namespace Service::AOC