diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-26 21:03:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 21:03:30 +0200 |
commit | 8440b814bcba9a5e6229f88ea211accebf778101 (patch) | |
tree | bfbbe7c0807f2c7e0d2d2380e28772d151ebebb8 /src/core/hle | |
parent | Merge pull request #832 from lioncash/nim (diff) | |
parent | service: Add the grc:c service (diff) | |
download | yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar.gz yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar.bz2 yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar.lz yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar.xz yuzu-8440b814bcba9a5e6229f88ea211accebf778101.tar.zst yuzu-8440b814bcba9a5e6229f88ea211accebf778101.zip |
Diffstat (limited to '')
-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 |
3 files changed, 48 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 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include <memory> + +#include "core/hle/service/grc/grc.h" +#include "core/hle/service/service.h" +#include "core/hle/service/sm/sm.h" + +namespace Service::GRC { + +class GRC final : public ServiceFramework<GRC> { +public: + explicit GRC() : ServiceFramework{"grc:c"} { + // clang-format off + static const FunctionInfo functions[] = { + {1, nullptr, "OpenContinuousRecorder"}, + {2, nullptr, "OpenGameMovieTrimmer"}, + }; + // clang-format on + + RegisterHandlers(functions); + } +}; + +void InstallInterfaces(SM::ServiceManager& sm) { + std::make_shared<GRC>()->InstallAsService(sm); +} + +} // 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 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +namespace Service::SM { +class ServiceManager; +} + +namespace Service::GRC { + +void InstallInterfaces(SM::ServiceManager& sm); + +} // 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 @@ #include "core/hle/service/fatal/fatal.h" #include "core/hle/service/filesystem/filesystem.h" #include "core/hle/service/friend/friend.h" +#include "core/hle/service/grc/grc.h" #include "core/hle/service/hid/hid.h" #include "core/hle/service/ldn/ldn.h" #include "core/hle/service/ldr/ldr.h" @@ -200,6 +201,7 @@ void Init(std::shared_ptr<SM::ServiceManager>& sm) { Fatal::InstallInterfaces(*sm); FileSystem::InstallInterfaces(*sm); Friend::InstallInterfaces(*sm); + GRC::InstallInterfaces(*sm); HID::InstallInterfaces(*sm); LDN::InstallInterfaces(*sm); LDR::InstallInterfaces(*sm); |