summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/psc/psc.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/psc/psc.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/psc/psc.cpp')
-rw-r--r--src/core/hle/service/psc/psc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/psc/psc.cpp b/src/core/hle/service/psc/psc.cpp
index 99e1c9042..5a52b2b05 100644
--- a/src/core/hle/service/psc/psc.cpp
+++ b/src/core/hle/service/psc/psc.cpp
@@ -14,7 +14,7 @@ namespace Service::PSC {
class PSC_C final : public ServiceFramework<PSC_C> {
public:
- explicit PSC_C() : ServiceFramework{"psc:c"} {
+ explicit PSC_C(Core::System& system_) : ServiceFramework{system_, "psc:c"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "Initialize"},
@@ -35,7 +35,7 @@ public:
class IPmModule final : public ServiceFramework<IPmModule> {
public:
- explicit IPmModule() : ServiceFramework{"IPmModule"} {
+ explicit IPmModule(Core::System& system_) : ServiceFramework{system_, "IPmModule"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, nullptr, "Initialize"},
@@ -52,7 +52,7 @@ public:
class PSC_M final : public ServiceFramework<PSC_M> {
public:
- explicit PSC_M() : ServiceFramework{"psc:m"} {
+ explicit PSC_M(Core::System& system_) : ServiceFramework{system_, "psc:m"} {
// clang-format off
static const FunctionInfo functions[] = {
{0, &PSC_M::GetPmModule, "GetPmModule"},
@@ -68,13 +68,13 @@ private:
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(RESULT_SUCCESS);
- rb.PushIpcInterface<IPmModule>();
+ rb.PushIpcInterface<IPmModule>(system);
}
};
-void InstallInterfaces(SM::ServiceManager& sm) {
- std::make_shared<PSC_C>()->InstallAsService(sm);
- std::make_shared<PSC_M>()->InstallAsService(sm);
+void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) {
+ std::make_shared<PSC_C>(system)->InstallAsService(sm);
+ std::make_shared<PSC_M>(system)->InstallAsService(sm);
}
} // namespace Service::PSC