summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-08 03:40:30 +0200
committerGitHub <noreply@github.com>2019-07-08 03:40:30 +0200
commit7b28f954c900536887ce2580d1e654e913580809 (patch)
treeda6e03823d7461f8e02e2deb0fbb8ff521b8e491 /src/core/core.cpp
parentMerge pull request #2642 from DarkLordZach/fsp-log-2 (diff)
parentam: Implement SetCpuBoostMode in terms of APM (diff)
downloadyuzu-7b28f954c900536887ce2580d1e654e913580809.tar
yuzu-7b28f954c900536887ce2580d1e654e913580809.tar.gz
yuzu-7b28f954c900536887ce2580d1e654e913580809.tar.bz2
yuzu-7b28f954c900536887ce2580d1e654e913580809.tar.lz
yuzu-7b28f954c900536887ce2580d1e654e913580809.tar.xz
yuzu-7b28f954c900536887ce2580d1e654e913580809.tar.zst
yuzu-7b28f954c900536887ce2580d1e654e913580809.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 773087154..4aceee785 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -25,6 +25,7 @@
#include "core/hle/kernel/scheduler.h"
#include "core/hle/kernel/thread.h"
#include "core/hle/service/am/applets/applets.h"
+#include "core/hle/service/apm/controller.h"
#include "core/hle/service/glue/manager.h"
#include "core/hle/service/service.h"
#include "core/hle/service/sm/sm.h"
@@ -306,6 +307,9 @@ struct System::Impl {
/// Frontend applets
Service::AM::Applets::AppletManager applet_manager;
+ /// APM (Performance) services
+ Service::APM::Controller apm_controller{core_timing};
+
/// Glue services
Service::Glue::ARPManager arp_manager;
@@ -568,6 +572,14 @@ const Service::Glue::ARPManager& System::GetARPManager() const {
return impl->arp_manager;
}
+Service::APM::Controller& System::GetAPMController() {
+ return impl->apm_controller;
+}
+
+const Service::APM::Controller& System::GetAPMController() const {
+ return impl->apm_controller;
+}
+
System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) {
return impl->Init(*this, emu_window);
}