2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-07-26 15:25:54 +02:00
|
|
|
|
|
|
|
#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:
|
2021-05-04 10:04:05 +02:00
|
|
|
explicit GRC(Core::System& system_) : ServiceFramework{system_, "grc:c"} {
|
2018-07-26 15:25:54 +02:00
|
|
|
// clang-format off
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{1, nullptr, "OpenContinuousRecorder"},
|
|
|
|
{2, nullptr, "OpenGameMovieTrimmer"},
|
2020-06-27 12:41:21 +02:00
|
|
|
{3, nullptr, "OpenOffscreenRecorder"},
|
|
|
|
{101, nullptr, "CreateMovieMaker"},
|
2020-06-27 12:45:42 +02:00
|
|
|
{9903, nullptr, "SetOffscreenRecordingMarker"}
|
2018-07-26 15:25:54 +02:00
|
|
|
};
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-11-26 21:19:08 +01:00
|
|
|
void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
|
|
|
|
std::make_shared<GRC>(system)->InstallAsService(sm);
|
2018-07-26 15:25:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::GRC
|