diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-28 18:43:48 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-30 17:21:53 -0400 |
commit | f6c53526b3e6852577ad5f5986be89202b15c5b2 (patch) | |
tree | dab7e623b1e6a2783effbda7a53f232d18aaf6ec /src/core/core.cpp | |
parent | 943662dc3c59537d7c3e05b98cfc08212491ac87 (diff) |
core/loader: Track the NSO build ID of the current process
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 92ba42fb9c..75a7ffb973 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -339,6 +339,7 @@ struct System::Impl { std::unique_ptr<Memory::CheatEngine> cheat_engine; std::unique_ptr<Tools::Freezer> memory_freezer; + std::array<u8, 0x20> build_id{}; /// Frontend applets Service::AM::Applets::AppletManager applet_manager; @@ -640,6 +641,14 @@ bool System::GetExitLock() const { return impl->exit_lock; } +void System::SetCurrentProcessBuildID(std::array<u8, 32> id) { + impl->build_id = id; +} + +const std::array<u8, 32>& System::GetCurrentProcessBuildID() const { + return impl->build_id; +} + System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) { return impl->Init(*this, emu_window); } |