mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 02:32:46 +01:00
Service/AOC: stub ListAddOnContent function
This commit is contained in:
parent
23fe6f5be3
commit
46931a9566
4 changed files with 28 additions and 2 deletions
|
@ -35,6 +35,7 @@ namespace Log {
|
||||||
SUB(Service, ACC) \
|
SUB(Service, ACC) \
|
||||||
SUB(Service, Audio) \
|
SUB(Service, Audio) \
|
||||||
SUB(Service, AM) \
|
SUB(Service, AM) \
|
||||||
|
SUB(Service, AOC) \
|
||||||
SUB(Service, APM) \
|
SUB(Service, APM) \
|
||||||
SUB(Service, FS) \
|
SUB(Service, FS) \
|
||||||
SUB(Service, HID) \
|
SUB(Service, HID) \
|
||||||
|
|
|
@ -51,6 +51,7 @@ enum class Class : ClassType {
|
||||||
/// should have its own subclass.
|
/// should have its own subclass.
|
||||||
Service_ACC, ///< The ACC (Accounts) service
|
Service_ACC, ///< The ACC (Accounts) service
|
||||||
Service_AM, ///< The AM (Applet manager) service
|
Service_AM, ///< The AM (Applet manager) service
|
||||||
|
Service_AOC, ///< The AOC (AddOn Content) service
|
||||||
Service_APM, ///< The APM (Performance) service
|
Service_APM, ///< The APM (Performance) service
|
||||||
Service_Audio, ///< The Audio (Audio control) service
|
Service_Audio, ///< The Audio (Audio control) service
|
||||||
Service_FS, ///< The FS (Filesystem) service
|
Service_FS, ///< The FS (Filesystem) service
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -13,6 +13,9 @@ class AOC_U final : public ServiceFramework<AOC_U> {
|
||||||
public:
|
public:
|
||||||
AOC_U();
|
AOC_U();
|
||||||
~AOC_U() = default;
|
~AOC_U() = default;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void ListAddOnContent(Kernel::HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Registers all AOC services with the specified service manager.
|
/// Registers all AOC services with the specified service manager.
|
||||||
|
|
Loading…
Reference in a new issue