aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/caps/caps_ss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/caps/caps_ss.cpp')
-rw-r--r--src/core/hle/service/caps/caps_ss.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/hle/service/caps/caps_ss.cpp b/src/core/hle/service/caps/caps_ss.cpp
index 0c444116b7..0cd641f551 100644
--- a/src/core/hle/service/caps/caps_ss.cpp
+++ b/src/core/hle/service/caps/caps_ss.cpp
@@ -12,22 +12,22 @@
namespace Service::Capture {
-std::optional<ServiceFrameworkBase::FunctionInfoBase> IScreenShotService::FindRequest(u32 key) {
- static constexpr auto functions = CreateStaticMap(
- FunctionInfo{201, nullptr, "SaveScreenShot"},
- FunctionInfo{202, nullptr, "SaveEditedScreenShot"},
- FunctionInfo{203, C<&IScreenShotService::SaveScreenShotEx0>, "SaveScreenShotEx0"},
- FunctionInfo{204, nullptr, "SaveEditedScreenShotEx0"},
- FunctionInfo{206, C<&IScreenShotService::SaveEditedScreenShotEx1>, "SaveEditedScreenShotEx1"},
- FunctionInfo{208, nullptr, "SaveScreenShotOfMovieEx1"},
- FunctionInfo{1000, nullptr, "Unknown1000"}
- );
- return HandlerTableGenerateWithFind(key, functions);
-}
-
IScreenShotService::IScreenShotService(Core::System& system_,
std::shared_ptr<AlbumManager> album_manager)
: ServiceFramework{system_, "caps:ss"}, manager{album_manager} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {201, nullptr, "SaveScreenShot"},
+ {202, nullptr, "SaveEditedScreenShot"},
+ {203, C<&IScreenShotService::SaveScreenShotEx0>, "SaveScreenShotEx0"},
+ {204, nullptr, "SaveEditedScreenShotEx0"},
+ {206, C<&IScreenShotService::SaveEditedScreenShotEx1>, "SaveEditedScreenShotEx1"},
+ {208, nullptr, "SaveScreenShotOfMovieEx1"},
+ {1000, nullptr, "Unknown1000"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
}
IScreenShotService::~IScreenShotService() = default;