diff options
| -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 2e2de59b1..7d493e0a1 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/ldr/ldr.cpp | 163 | hle/service/ldr/ldr.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 482989ea7..10c6757e5 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/ldr/ldr.h" | 32 | #include "core/hle/service/ldr/ldr.h" |
| 32 | #include "core/hle/service/lm/lm.h" | 33 | #include "core/hle/service/lm/lm.h" |
| @@ -198,6 +199,7 @@ void Init(std::shared_ptr<SM::ServiceManager>& sm) { | |||
| 198 | Fatal::InstallInterfaces(*sm); | 199 | Fatal::InstallInterfaces(*sm); |
| 199 | FileSystem::InstallInterfaces(*sm); | 200 | FileSystem::InstallInterfaces(*sm); |
| 200 | Friend::InstallInterfaces(*sm); | 201 | Friend::InstallInterfaces(*sm); |
| 202 | GRC::InstallInterfaces(*sm); | ||
| 201 | HID::InstallInterfaces(*sm); | 203 | HID::InstallInterfaces(*sm); |
| 202 | LDR::InstallInterfaces(*sm); | 204 | LDR::InstallInterfaces(*sm); |
| 203 | LM::InstallInterfaces(*sm); | 205 | LM::InstallInterfaces(*sm); |