diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 07c73308..1e132c94 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -288,6 +288,7 @@ add_library(skyline SHARED ${source_DIR}/skyline/services/bt/IBluetoothUser.cpp ${source_DIR}/skyline/services/btm/IBtmUser.cpp ${source_DIR}/skyline/services/btm/IBtmUserCore.cpp + ${source_DIR}/skyline/services/capsrv/IAlbumAccessorService.cpp ${source_DIR}/skyline/services/ro/IRoInterface.cpp ${source_DIR}/skyline/applet/applet_creator.cpp ${source_DIR}/skyline/applet/controller_applet.cpp diff --git a/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.cpp b/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.cpp new file mode 100644 index 00000000..d8f8f045 --- /dev/null +++ b/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.cpp @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#include "IAlbumAccessorService.h" + +namespace skyline::service::capsrv { + IAlbumAccessorService::IAlbumAccessorService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {} +} \ No newline at end of file diff --git a/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.h b/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.h new file mode 100644 index 00000000..3cc34247 --- /dev/null +++ b/app/src/main/cpp/skyline/services/capsrv/IAlbumAccessorService.h @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#pragma once + +#include + +namespace skyline::service::capsrv { + /** + * @url https://switchbrew.org/wiki/Capture_services#caps:a + */ + class IAlbumAccessorService : public BaseService { + public: + IAlbumAccessorService(const DeviceState &state, ServiceManager &manager); + }; +} \ No newline at end of file diff --git a/app/src/main/cpp/skyline/services/serviceman.cpp b/app/src/main/cpp/skyline/services/serviceman.cpp index 96258ba2..ab1f16b5 100644 --- a/app/src/main/cpp/skyline/services/serviceman.cpp +++ b/app/src/main/cpp/skyline/services/serviceman.cpp @@ -49,6 +49,7 @@ #include "mmnv/IRequest.h" #include "bt/IBluetoothUser.h" #include "btm/IBtmUser.h" +#include "capsrv/IAlbumAccessorService.h" #include "ro/IRoInterface.h" #include "serviceman.h" @@ -126,6 +127,7 @@ namespace skyline::service { SERVICE_CASE(bcat::IServiceCreator, "bcat:u") SERVICE_CASE(bt::IBluetoothUser, "bt") SERVICE_CASE(btm::IBtmUser, "btm:u") + SERVICE_CASE(capsrv::IAlbumAccessorService, "caps:a") SERVICE_CASE(nim::IShopServiceAccessServerInterface, "nim:eca") SERVICE_CASE(ro::IRoInterface, "ldr:ro") default: