diff options
author | bunnei <bunneidev@gmail.com> | 2019-10-09 02:23:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 02:23:13 +0200 |
commit | b9c831de623df5a58cc5aa47392d6841bfef8d8b (patch) | |
tree | 2242bd5c0931997af15beccde978434b79a8d1d9 /src/core/core.cpp | |
parent | Merge pull request #2961 from DarkLordZach/azure-tag-names (diff) | |
parent | lm: Flush manager output on core shutdown (diff) | |
download | yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar.gz yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar.bz2 yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar.lz yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar.xz yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.tar.zst yuzu-b9c831de623df5a58cc5aa47392d6841bfef8d8b.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index a58ceb703..4d0ac72a5 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -35,6 +35,7 @@ #include "core/hle/service/apm/controller.h" #include "core/hle/service/filesystem/filesystem.h" #include "core/hle/service/glue/manager.h" +#include "core/hle/service/lm/manager.h" #include "core/hle/service/service.h" #include "core/hle/service/sm/sm.h" #include "core/loader/loader.h" @@ -250,6 +251,8 @@ struct System::Impl { telemetry_session->AddField(Telemetry::FieldType::Performance, "Mean_Frametime_MS", perf_stats->GetMeanFrametime()); + lm_manager.Flush(); + is_powered_on = false; exit_lock = false; @@ -338,6 +341,7 @@ struct System::Impl { bool is_powered_on = false; bool exit_lock = false; + Reporter reporter; std::unique_ptr<Memory::CheatEngine> cheat_engine; std::unique_ptr<Tools::Freezer> memory_freezer; std::array<u8, 0x20> build_id{}; @@ -348,8 +352,9 @@ struct System::Impl { /// APM (Performance) services Service::APM::Controller apm_controller{core_timing}; - /// Glue services + /// Service State Service::Glue::ARPManager arp_manager; + Service::LM::Manager lm_manager{reporter}; /// Service manager std::shared_ptr<Service::SM::ServiceManager> service_manager; @@ -357,8 +362,6 @@ struct System::Impl { /// Telemetry session for this emulation session std::unique_ptr<Core::TelemetrySession> telemetry_session; - Reporter reporter; - ResultStatus status = ResultStatus::Success; std::string status_details = ""; @@ -634,6 +637,14 @@ const Service::APM::Controller& System::GetAPMController() const { return impl->apm_controller; } +Service::LM::Manager& System::GetLogManager() { + return impl->lm_manager; +} + +const Service::LM::Manager& System::GetLogManager() const { + return impl->lm_manager; +} + void System::SetExitLock(bool locked) { impl->exit_lock = locked; } |