diff options
| author | 2023-09-14 14:34:05 -0400 | |
|---|---|---|
| committer | 2023-09-14 16:44:15 -0400 | |
| commit | 3ef9673360089b1729ff174eefad9195d8eaf97f (patch) | |
| tree | 796d1f7b918f0db4c8a2024388dbb4c51c831464 /src/core/file_sys | |
| parent | Merge pull request #11496 from liamwhite/ngc (diff) | |
| download | yuzu-3ef9673360089b1729ff174eefad9195d8eaf97f.tar.gz yuzu-3ef9673360089b1729ff174eefad9195d8eaf97f.tar.xz yuzu-3ef9673360089b1729ff174eefad9195d8eaf97f.zip | |
core: improve debug workflow
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 4 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index a4baddb15..8e475f25a 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -294,11 +294,11 @@ std::vector<u8> PatchManager::PatchNSO(const std::vector<u8>& nso, const std::st | |||
| 294 | return out; | 294 | return out; |
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | bool PatchManager::HasNSOPatch(const BuildID& build_id_) const { | 297 | bool PatchManager::HasNSOPatch(const BuildID& build_id_, std::string_view name) const { |
| 298 | const auto build_id_raw = Common::HexToString(build_id_); | 298 | const auto build_id_raw = Common::HexToString(build_id_); |
| 299 | const auto build_id = build_id_raw.substr(0, build_id_raw.find_last_not_of('0') + 1); | 299 | const auto build_id = build_id_raw.substr(0, build_id_raw.find_last_not_of('0') + 1); |
| 300 | 300 | ||
| 301 | LOG_INFO(Loader, "Querying NSO patch existence for build_id={}", build_id); | 301 | LOG_INFO(Loader, "Querying NSO patch existence for build_id={}, name={}", build_id, name); |
| 302 | 302 | ||
| 303 | const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); | 303 | const auto load_dir = fs_controller.GetModificationLoadRoot(title_id); |
| 304 | if (load_dir == nullptr) { | 304 | if (load_dir == nullptr) { |
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index adcde7b7d..03e9c7301 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h | |||
| @@ -52,7 +52,7 @@ public: | |||
| 52 | 52 | ||
| 53 | // Checks to see if PatchNSO() will have any effect given the NSO's build ID. | 53 | // Checks to see if PatchNSO() will have any effect given the NSO's build ID. |
| 54 | // Used to prevent expensive copies in NSO loader. | 54 | // Used to prevent expensive copies in NSO loader. |
| 55 | [[nodiscard]] bool HasNSOPatch(const BuildID& build_id) const; | 55 | [[nodiscard]] bool HasNSOPatch(const BuildID& build_id, std::string_view name) const; |
| 56 | 56 | ||
| 57 | // Creates a CheatList object with all | 57 | // Creates a CheatList object with all |
| 58 | [[nodiscard]] std::vector<Core::Memory::CheatEntry> CreateCheatList( | 58 | [[nodiscard]] std::vector<Core::Memory::CheatEntry> CreateCheatList( |