summaryrefslogtreecommitdiff
path: root/src/core/hle/service/grc
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-26 09:25:54 -0400
committerGravatar Lioncash2018-07-26 09:53:58 -0400
commitb28af1f6c9d66cdbfbd0982f3de5aabac94cf660 (patch)
treea251f441d53c683eecb9535536dfbebfae687ee6 /src/core/hle/service/grc
parentMerge pull request #828 from lioncash/ldr (diff)
downloadyuzu-b28af1f6c9d66cdbfbd0982f3de5aabac94cf660.tar.gz
yuzu-b28af1f6c9d66cdbfbd0982f3de5aabac94cf660.tar.xz
yuzu-b28af1f6c9d66cdbfbd0982f3de5aabac94cf660.zip
service: Add the grc:c service
Adds the basic skeleton for the grc:c service based off the information provided by Switch Brew.
Diffstat (limited to 'src/core/hle/service/grc')
-rw-r--r--src/core/hle/service/grc/grc.cpp31
-rw-r--r--src/core/hle/service/grc/grc.h15
2 files changed, 46 insertions, 0 deletions
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
11namespace Service::GRC {
12
13class GRC final : public ServiceFramework<GRC> {
14public:
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
27void 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
7namespace Service::SM {
8class ServiceManager;
9}
10
11namespace Service::GRC {
12
13void InstallInterfaces(SM::ServiceManager& sm);
14
15} // namespace Service::GRC