Browse Source
Merge pull request #834 from lioncash/grc
service: Add the grc:c service
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
50 additions and
0 deletions
-
src/core/CMakeLists.txt
-
src/core/hle/service/grc/grc.cpp
-
src/core/hle/service/grc/grc.h
-
src/core/hle/service/service.cpp
|
|
|
@ -156,6 +156,8 @@ add_library(core STATIC |
|
|
|
hle/service/friend/friend.h |
|
|
|
hle/service/friend/interface.cpp |
|
|
|
hle/service/friend/interface.h |
|
|
|
hle/service/grc/grc.cpp |
|
|
|
hle/service/grc/grc.h |
|
|
|
hle/service/hid/hid.cpp |
|
|
|
hle/service/hid/hid.h |
|
|
|
hle/service/ldn/ldn.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
|
|
|
|
@ -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 |
|
|
|
@ -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); |
|
|
|
|