summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-29 04:46:31 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-29 04:46:31 +0200
commite2ad3e1fb0771a5280601dbcb9bafe9ebe323492 (patch)
tree871565865a018bbc32b22d7ec71203604eb6a5ca /src/core
parentapm: Implement SetCpuBoostMode (diff)
downloadyuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar.gz
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar.bz2
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar.lz
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar.xz
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.tar.zst
yuzu-e2ad3e1fb0771a5280601dbcb9bafe9ebe323492.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.cpp12
-rw-r--r--src/core/core.h8
2 files changed, 20 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index df26eb109..fa6fc357d 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"
@@ -304,6 +305,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;
@@ -566,6 +570,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);
}
diff --git a/src/core/core.h b/src/core/core.h
index 70adb7af9..11e73278e 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -43,6 +43,10 @@ struct AppletFrontendSet;
class AppletManager;
} // namespace AM::Applets
+namespace APM {
+class Controller;
+}
+
namespace Glue {
class ARPManager;
}
@@ -296,6 +300,10 @@ public:
const Service::Glue::ARPManager& GetARPManager() const;
+ Service::APM::Controller& GetAPMController();
+
+ const Service::APM::Controller& GetAPMController() const;
+
private:
System();