2018-01-13 22:22:39 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2017-12-28 21:24:05 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2018-02-20 08:27:32 +01:00
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
2017-12-28 21:24:05 +01:00
|
|
|
#include "core/hle/service/aoc/aoc_u.h"
|
|
|
|
|
2018-04-20 03:41:44 +02:00
|
|
|
namespace Service::AOC {
|
2017-12-28 21:24:05 +01:00
|
|
|
|
2018-02-20 08:27:32 +01:00
|
|
|
AOC_U::AOC_U() : ServiceFramework("aoc:u") {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, nullptr, "CountAddOnContentByApplicationId"},
|
|
|
|
{1, nullptr, "ListAddOnContentByApplicationId"},
|
2018-02-22 15:28:15 +01:00
|
|
|
{2, &AOC_U::CountAddOnContent, "CountAddOnContent"},
|
2018-02-20 08:27:32 +01:00
|
|
|
{3, &AOC_U::ListAddOnContent, "ListAddOnContent"},
|
|
|
|
{4, nullptr, "GetAddOnContentBaseIdByApplicationId"},
|
|
|
|
{5, nullptr, "GetAddOnContentBaseId"},
|
|
|
|
{6, nullptr, "PrepareAddOnContentByApplicationId"},
|
|
|
|
{7, nullptr, "PrepareAddOnContent"},
|
2018-04-10 17:42:28 +02:00
|
|
|
{8, nullptr, "GetAddOnContentListChangedEvent"},
|
2018-02-20 08:27:32 +01:00
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
2018-02-22 15:28:15 +01:00
|
|
|
void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
|
|
|
|
IPC::ResponseBuilder rb{ctx, 4};
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
rb.Push<u64>(0);
|
|
|
|
LOG_WARNING(Service_AOC, "(STUBBED) called");
|
|
|
|
}
|
|
|
|
|
2018-02-20 08:27:32 +01:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
|
2017-12-28 21:24:05 +01:00
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|
|
|
std::make_shared<AOC_U>()->InstallAsService(service_manager);
|
|
|
|
}
|
|
|
|
|
2018-04-20 03:41:44 +02:00
|
|
|
} // namespace Service::AOC
|