diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 7106151bd..96ba6a569 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -270,6 +270,8 @@ struct System::Impl { | |||
| 270 | /// Telemetry session for this emulation session | 270 | /// Telemetry session for this emulation session |
| 271 | std::unique_ptr<Core::TelemetrySession> telemetry_session; | 271 | std::unique_ptr<Core::TelemetrySession> telemetry_session; |
| 272 | 272 | ||
| 273 | std::map<VAddr, std::string, std::greater<>> modules; | ||
| 274 | |||
| 273 | ResultStatus status = ResultStatus::Success; | 275 | ResultStatus status = ResultStatus::Success; |
| 274 | std::string status_details = ""; | 276 | std::string status_details = ""; |
| 275 | 277 | ||
| @@ -509,6 +511,14 @@ void System::ClearContentProvider(FileSys::ContentProviderUnionSlot slot) { | |||
| 509 | impl->content_provider->ClearSlot(slot); | 511 | impl->content_provider->ClearSlot(slot); |
| 510 | } | 512 | } |
| 511 | 513 | ||
| 514 | void System::RegisterNSOModule(std::string name, VAddr start_address) { | ||
| 515 | impl->modules.insert_or_assign(start_address, name); | ||
| 516 | } | ||
| 517 | |||
| 518 | const std::map<VAddr, std::string, std::greater<>>& System::GetRegisteredNSOModules() const { | ||
| 519 | return impl->modules; | ||
| 520 | } | ||
| 521 | |||
| 512 | System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) { | 522 | System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) { |
| 513 | return impl->Init(*this, emu_window); | 523 | return impl->Init(*this, emu_window); |
| 514 | } | 524 | } |