diff options
| author | 2019-05-26 11:40:41 -0400 | |
|---|---|---|
| committer | 2019-05-26 11:40:46 -0400 | |
| commit | b77fde7c5c1f63aad9d4f01ea625805661870f3e (patch) | |
| tree | 1a69520beebaac50ecd19d4c54828f7b8a498dd0 /src/core/core.cpp | |
| parent | prepo: Save reports from PlayReport service (diff) | |
| download | yuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.tar.gz yuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.tar.xz yuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.zip | |
loader: Move NSO module tracking to AppLoader
Also cleanup of general stuff
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index db4c067df..ac9eeddbb 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -83,7 +83,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 83 | return vfs->OpenFile(path, FileSys::Mode::Read); | 83 | return vfs->OpenFile(path, FileSys::Mode::Read); |
| 84 | } | 84 | } |
| 85 | struct System::Impl { | 85 | struct System::Impl { |
| 86 | explicit Impl(System& system) : kernel{system}, cpu_core_manager{system} {} | 86 | explicit Impl(System& system) : kernel{system}, cpu_core_manager{system}, reporter{system} {} |
| 87 | 87 | ||
| 88 | Cpu& CurrentCpuCore() { | 88 | Cpu& CurrentCpuCore() { |
| 89 | return cpu_core_manager.GetCurrentCore(); | 89 | return cpu_core_manager.GetCurrentCore(); |
| @@ -271,7 +271,6 @@ struct System::Impl { | |||
| 271 | /// Telemetry session for this emulation session | 271 | /// Telemetry session for this emulation session |
| 272 | std::unique_ptr<Core::TelemetrySession> telemetry_session; | 272 | std::unique_ptr<Core::TelemetrySession> telemetry_session; |
| 273 | 273 | ||
| 274 | std::map<VAddr, std::string, std::greater<>> modules; | ||
| 275 | Reporter reporter; | 274 | Reporter reporter; |
| 276 | 275 | ||
| 277 | ResultStatus status = ResultStatus::Success; | 276 | ResultStatus status = ResultStatus::Success; |
| @@ -513,14 +512,6 @@ void System::ClearContentProvider(FileSys::ContentProviderUnionSlot slot) { | |||
| 513 | impl->content_provider->ClearSlot(slot); | 512 | impl->content_provider->ClearSlot(slot); |
| 514 | } | 513 | } |
| 515 | 514 | ||
| 516 | void System::RegisterNSOModule(std::string name, VAddr start_address) { | ||
| 517 | impl->modules.insert_or_assign(start_address, name); | ||
| 518 | } | ||
| 519 | |||
| 520 | const std::map<VAddr, std::string, std::greater<>>& System::GetRegisteredNSOModules() const { | ||
| 521 | return impl->modules; | ||
| 522 | } | ||
| 523 | |||
| 524 | const Reporter& System::GetReporter() const { | 515 | const Reporter& System::GetReporter() const { |
| 525 | return impl->reporter; | 516 | return impl->reporter; |
| 526 | } | 517 | } |