|
@@ -2,16 +2,37 @@
|
|
|
// Licensed under GPLv2 or any later version
|
|
// Licensed under GPLv2 or any later version
|
|
|
// Refer to the license.txt file included.
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
+#include "common/logging/log.h"
|
|
|
|
|
+#include "core/hle/ipc_helpers.h"
|
|
|
#include "core/hle/service/aoc/aoc_u.h"
|
|
#include "core/hle/service/aoc/aoc_u.h"
|
|
|
|
|
|
|
|
namespace Service {
|
|
namespace Service {
|
|
|
namespace AOC {
|
|
namespace AOC {
|
|
|
|
|
|
|
|
|
|
+AOC_U::AOC_U() : ServiceFramework("aoc:u") {
|
|
|
|
|
+ static const FunctionInfo functions[] = {
|
|
|
|
|
+ {0, nullptr, "CountAddOnContentByApplicationId"},
|
|
|
|
|
+ {1, nullptr, "ListAddOnContentByApplicationId"},
|
|
|
|
|
+ {2, nullptr, "CountAddOnContent"},
|
|
|
|
|
+ {3, &AOC_U::ListAddOnContent, "ListAddOnContent"},
|
|
|
|
|
+ {4, nullptr, "GetAddOnContentBaseIdByApplicationId"},
|
|
|
|
|
+ {5, nullptr, "GetAddOnContentBaseId"},
|
|
|
|
|
+ {6, nullptr, "PrepareAddOnContentByApplicationId"},
|
|
|
|
|
+ {7, nullptr, "PrepareAddOnContent"},
|
|
|
|
|
+ };
|
|
|
|
|
+ RegisterHandlers(functions);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
+ IPC::ResponseBuilder rb{ctx, 4};
|
|
|
|
|
+ rb.Push(RESULT_SUCCESS);
|
|
|
|
|
+ rb.Push<u64>(0);
|
|
|
|
|
+ LOG_WARNING(Service_AOC, "(STUBBED) called");
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|
|
std::make_shared<AOC_U>()->InstallAsService(service_manager);
|
|
std::make_shared<AOC_U>()->InstallAsService(service_manager);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-AOC_U::AOC_U() : ServiceFramework("aoc:u") {}
|
|
|
|
|
-
|
|
|
|
|
} // namespace AOC
|
|
} // namespace AOC
|
|
|
} // namespace Service
|
|
} // namespace Service
|