2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-07-26 13:25:54 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "core/hle/service/grc/grc.h"
|
2023-02-18 21:26:48 +00:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2018-07-26 13:25:54 +00:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
namespace Service::GRC {
|
|
|
|
|
|
|
|
class GRC final : public ServiceFramework<GRC> {
|
|
|
|
public:
|
2021-05-04 08:04:05 +00:00
|
|
|
explicit GRC(Core::System& system_) : ServiceFramework{system_, "grc:c"} {
|
2018-07-26 13:25:54 +00:00
|
|
|
// clang-format off
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{1, nullptr, "OpenContinuousRecorder"},
|
|
|
|
{2, nullptr, "OpenGameMovieTrimmer"},
|
2020-06-27 10:41:21 +00:00
|
|
|
{3, nullptr, "OpenOffscreenRecorder"},
|
|
|
|
{101, nullptr, "CreateMovieMaker"},
|
2020-06-27 10:45:42 +00:00
|
|
|
{9903, nullptr, "SetOffscreenRecordingMarker"}
|
2018-07-26 13:25:54 +00:00
|
|
|
};
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2023-02-18 21:26:48 +00:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
|
|
|
server_manager->RegisterNamedService("grc:c", std::make_shared<GRC>(system));
|
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2018-07-26 13:25:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::GRC
|