diff options
| -rw-r--r-- | src/core/hle/service/bcat/backend/backend.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/bcat/backend/backend.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/bcat/backend/backend.cpp b/src/core/hle/service/bcat/backend/backend.cpp index aefa2208d..9a67da2ef 100644 --- a/src/core/hle/service/bcat/backend/backend.cpp +++ b/src/core/hle/service/bcat/backend/backend.cpp | |||
| @@ -44,4 +44,10 @@ void NullBackend::SetPassphrase(u64 title_id, const Passphrase& passphrase) { | |||
| 44 | Common::HexArrayToString(passphrase)); | 44 | Common::HexArrayToString(passphrase)); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | std::optional<std::vector<u8>> NullBackend::GetLaunchParameter(TitleIDVersion title) { | ||
| 48 | LOG_DEBUG(Service_BCAT, "called, title_id={:016X}, build_id={:016X}", title.title_id, | ||
| 49 | title.build_id); | ||
| 50 | return std::nullopt; | ||
| 51 | } | ||
| 52 | |||
| 47 | } // namespace Service::BCAT | 53 | } // namespace Service::BCAT |
diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h index e412819e1..5b4118814 100644 --- a/src/core/hle/service/bcat/backend/backend.h +++ b/src/core/hle/service/bcat/backend/backend.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <functional> | 7 | #include <functional> |
| 8 | #include <optional> | ||
| 8 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 9 | #include "core/file_sys/vfs_types.h" | 10 | #include "core/file_sys/vfs_types.h" |
| 10 | 11 | ||
| @@ -32,6 +33,8 @@ public: | |||
| 32 | 33 | ||
| 33 | virtual void SetPassphrase(u64 title_id, const Passphrase& passphrase) = 0; | 34 | virtual void SetPassphrase(u64 title_id, const Passphrase& passphrase) = 0; |
| 34 | 35 | ||
| 36 | virtual std::optional<std::vector<u8>> GetLaunchParameter(TitleIDVersion title) = 0; | ||
| 37 | |||
| 35 | protected: | 38 | protected: |
| 36 | DirectoryGetter dir_getter; | 39 | DirectoryGetter dir_getter; |
| 37 | }; | 40 | }; |
| @@ -48,6 +51,8 @@ public: | |||
| 48 | bool Clear(u64 title_id) override; | 51 | bool Clear(u64 title_id) override; |
| 49 | 52 | ||
| 50 | void SetPassphrase(u64 title_id, const Passphrase& passphrase) override; | 53 | void SetPassphrase(u64 title_id, const Passphrase& passphrase) override; |
| 54 | |||
| 55 | std::optional<std::vector<u8>> GetLaunchParameter(TitleIDVersion title) override; | ||
| 51 | }; | 56 | }; |
| 52 | 57 | ||
| 53 | std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter); | 58 | std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter); |