diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/hle/service/grc/grc.cpp | 31 | ||||
| -rw-r--r-- | src/core/hle/service/grc/grc.h | 15 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
4 files changed, 50 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7b586eaa8..063e18d64 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -156,6 +156,8 @@ add_library(core STATIC | |||
| 156 | hle/service/friend/friend.h | 156 | hle/service/friend/friend.h |
| 157 | hle/service/friend/interface.cpp | 157 | hle/service/friend/interface.cpp |
| 158 | hle/service/friend/interface.h | 158 | hle/service/friend/interface.h |
| 159 | hle/service/grc/grc.cpp | ||
| 160 | hle/service/grc/grc.h | ||
| 159 | hle/service/hid/hid.cpp | 161 | hle/service/hid/hid.cpp |
| 160 | hle/service/hid/hid.h | 162 | hle/service/hid/hid.h |
| 161 | hle/service/ldn/ldn.cpp | 163 | hle/service/ldn/ldn.cpp |
diff --git a/src/core/hle/service/grc/grc.cpp b/src/core/hle/service/grc/grc.cpp new file mode 100644 index 000000000..24910ac6c --- /dev/null +++ b/src/core/hle/service/grc/grc.cpp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include <memory> | ||
| 6 | |||
| 7 | #include "core/hle/service/grc/grc.h" | ||
| 8 | #include "core/hle/service/service.h" | ||
| 9 | #include "core/hle/service/sm/sm.h" | ||
| 10 | |||
| 11 | namespace Service::GRC { | ||
| 12 | |||
| 13 | class GRC final : public ServiceFramework<GRC> { | ||
| 14 | public: | ||
| 15 | explicit GRC() : ServiceFramework{"grc:c"} { | ||
| 16 | // clang-format off | ||
| 17 | static const FunctionInfo functions[] = { | ||
| 18 | {1, nullptr, "OpenContinuousRecorder"}, | ||
| 19 | {2, nullptr, "OpenGameMovieTrimmer"}, | ||
| 20 | }; | ||
| 21 | // clang-format on | ||
| 22 | |||
| 23 | RegisterHandlers(functions); | ||
| 24 | } | ||
| 25 | }; | ||
| 26 | |||
| 27 | void InstallInterfaces(SM::ServiceManager& sm) { | ||
| 28 | std::make_shared<GRC>()->InstallAsService(sm); | ||
| 29 | } | ||
| 30 | |||
| 31 | } // namespace Service::GRC | ||
diff --git a/src/core/hle/service/grc/grc.h b/src/core/hle/service/grc/grc.h new file mode 100644 index 000000000..e0d29e70d --- /dev/null +++ b/src/core/hle/service/grc/grc.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | namespace Service::SM { | ||
| 8 | class ServiceManager; | ||
| 9 | } | ||
| 10 | |||
| 11 | namespace Service::GRC { | ||
| 12 | |||
| 13 | void InstallInterfaces(SM::ServiceManager& sm); | ||
| 14 | |||
| 15 | } // namespace Service::GRC | ||
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index e167ea827..8b84fd349 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include "core/hle/service/fatal/fatal.h" | 27 | #include "core/hle/service/fatal/fatal.h" |
| 28 | #include "core/hle/service/filesystem/filesystem.h" | 28 | #include "core/hle/service/filesystem/filesystem.h" |
| 29 | #include "core/hle/service/friend/friend.h" | 29 | #include "core/hle/service/friend/friend.h" |
| 30 | #include "core/hle/service/grc/grc.h" | ||
| 30 | #include "core/hle/service/hid/hid.h" | 31 | #include "core/hle/service/hid/hid.h" |
| 31 | #include "core/hle/service/ldn/ldn.h" | 32 | #include "core/hle/service/ldn/ldn.h" |
| 32 | #include "core/hle/service/ldr/ldr.h" | 33 | #include "core/hle/service/ldr/ldr.h" |
| @@ -200,6 +201,7 @@ void Init(std::shared_ptr<SM::ServiceManager>& sm) { | |||
| 200 | Fatal::InstallInterfaces(*sm); | 201 | Fatal::InstallInterfaces(*sm); |
| 201 | FileSystem::InstallInterfaces(*sm); | 202 | FileSystem::InstallInterfaces(*sm); |
| 202 | Friend::InstallInterfaces(*sm); | 203 | Friend::InstallInterfaces(*sm); |
| 204 | GRC::InstallInterfaces(*sm); | ||
| 203 | HID::InstallInterfaces(*sm); | 205 | HID::InstallInterfaces(*sm); |
| 204 | LDN::InstallInterfaces(*sm); | 206 | LDN::InstallInterfaces(*sm); |
| 205 | LDR::InstallInterfaces(*sm); | 207 | LDR::InstallInterfaces(*sm); |