mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 18:52:46 +01:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
33 lines
987 B
C++
33 lines
987 B
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#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(Core::System& system_) : ServiceFramework{system_, "grc:c"} {
|
|
// clang-format off
|
|
static const FunctionInfo functions[] = {
|
|
{1, nullptr, "OpenContinuousRecorder"},
|
|
{2, nullptr, "OpenGameMovieTrimmer"},
|
|
{3, nullptr, "OpenOffscreenRecorder"},
|
|
{101, nullptr, "CreateMovieMaker"},
|
|
{9903, nullptr, "SetOffscreenRecordingMarker"}
|
|
};
|
|
// clang-format on
|
|
|
|
RegisterHandlers(functions);
|
|
}
|
|
};
|
|
|
|
void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
|
|
std::make_shared<GRC>(system)->InstallAsService(sm);
|
|
}
|
|
|
|
} // namespace Service::GRC
|