mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-25 01:40:58 +01:00
9e726a9250
Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error.
34 lines
1,003 B
C++
34 lines
1,003 B
C++
// 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(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
|