summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/pcv/pcv.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-11-27 06:41:56 +0100
committerGitHub <noreply@github.com>2020-11-27 06:41:56 +0100
commitee5e77fbf97da699e5ded623c12cad56dd7ce0da (patch)
tree66940e6456e66688af258d1e56d846eedd82d5b6 /src/core/hle/service/pcv/pcv.cpp
parentMerge pull request #5016 from comex/xx-push (diff)
parentservice: Eliminate usages of the global system instance (diff)
downloadyuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar.gz
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar.bz2
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar.lz
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar.xz
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.tar.zst
yuzu-ee5e77fbf97da699e5ded623c12cad56dd7ce0da.zip
Diffstat (limited to 'src/core/hle/service/pcv/pcv.cpp')
-rw-r--r--src/core/hle/service/pcv/pcv.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/pcv/pcv.cpp b/src/core/hle/service/pcv/pcv.cpp
index 8bfc0276e..68b2c4178 100644
--- a/src/core/hle/service/pcv/pcv.cpp
+++ b/src/core/hle/service/pcv/pcv.cpp
@@ -12,7 +12,7 @@ namespace Service::PCV {
class PCV final : public ServiceFramework<PCV> {
public:
- explicit PCV() : ServiceFramework{"pcv"} {
+ explicit PCV(Core::System& system_) : ServiceFramework{system_, "pcv"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "SetPowerEnabled"},
@@ -54,7 +54,7 @@ public:
class PCV_ARB final : public ServiceFramework<PCV_ARB> {
public:
- explicit PCV_ARB() : ServiceFramework{"pcv:arb"} {
+ explicit PCV_ARB(Core::System& system_) : ServiceFramework{system_, "pcv:arb"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "ReleaseControl"},
@@ -67,7 +67,7 @@ public:
class PCV_IMM final : public ServiceFramework<PCV_IMM> {
public:
- explicit PCV_IMM() : ServiceFramework{"pcv:imm"} {
+ explicit PCV_IMM(Core::System& system_) : ServiceFramework{system_, "pcv:imm"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "SetClockRate"},
@@ -78,10 +78,10 @@ public:
}
};
-void InstallInterfaces(SM::ServiceManager& sm) {
- std::make_shared<PCV>()->InstallAsService(sm);
- std::make_shared<PCV_ARB>()->InstallAsService(sm);
- std::make_shared<PCV_IMM>()->InstallAsService(sm);
+void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
+ std::make_shared<PCV>(system)->InstallAsService(sm);
+ std::make_shared<PCV_ARB>(system)->InstallAsService(sm);
+ std::make_shared<PCV_IMM>(system)->InstallAsService(sm);
}
} // namespace Service::PCV