diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-22 07:12:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 07:12:34 +0100 |
commit | 3a85bc1e771b8c11728b6535710e21dc092b6732 (patch) | |
tree | be80bf80153857db46a24de4b34a7d8bbac7a0ae /src/core/file_sys/patch_manager.h | |
parent | Merge pull request #4954 from lioncash/compare (diff) | |
parent | patch_manager: Remove usages of the global system instance (diff) | |
download | yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.gz yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.bz2 yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.lz yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.xz yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.tar.zst yuzu-3a85bc1e771b8c11728b6535710e21dc092b6732.zip |
Diffstat (limited to 'src/core/file_sys/patch_manager.h')
-rw-r--r-- | src/core/file_sys/patch_manager.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index 1f28c6241..fb1853035 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h @@ -17,8 +17,13 @@ namespace Core { class System; } +namespace Service::FileSystem { +class FileSystemController; +} + namespace FileSys { +class ContentProvider; class NCA; class NACP; @@ -29,7 +34,9 @@ public: using Metadata = std::pair<std::unique_ptr<NACP>, VirtualFile>; using PatchVersionNames = std::map<std::string, std::string, std::less<>>; - explicit PatchManager(u64 title_id); + explicit PatchManager(u64 title_id_, + const Service::FileSystem::FileSystemController& fs_controller_, + const ContentProvider& content_provider_); ~PatchManager(); [[nodiscard]] u64 GetTitleID() const; @@ -50,7 +57,7 @@ public: // Creates a CheatList object with all [[nodiscard]] std::vector<Core::Memory::CheatEntry> CreateCheatList( - const Core::System& system, const BuildID& build_id) const; + const BuildID& build_id) const; // Currently tracked RomFS patches: // - Game Updates @@ -80,6 +87,8 @@ private: const std::string& build_id) const; u64 title_id; + const Service::FileSystem::FileSystemController& fs_controller; + const ContentProvider& content_provider; }; } // namespace FileSys |