diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-05-02 04:42:17 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-30 23:27:23 +0200 |
commit | b8ce87103d1aa382a9b96f3379a599f869b02a68 (patch) | |
tree | 07c6a46fe140e61a47825e836b8e6e07dbbc46fb /src/core/hle/service | |
parent | bcat: Expose CreateBackendFromSettings helper function (diff) | |
download | yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar.gz yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar.bz2 yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar.lz yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar.xz yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.tar.zst yuzu-b8ce87103d1aa382a9b96f3379a599f869b02a68.zip |
Diffstat (limited to '')
-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) { Common::HexArrayToString(passphrase)); } +std::optional<std::vector<u8>> NullBackend::GetLaunchParameter(TitleIDVersion title) { + LOG_DEBUG(Service_BCAT, "called, title_id={:016X}, build_id={:016X}", title.title_id, + title.build_id); + return std::nullopt; +} + } // 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 @@ #pragma once #include <functional> +#include <optional> #include "common/common_types.h" #include "core/file_sys/vfs_types.h" @@ -32,6 +33,8 @@ public: virtual void SetPassphrase(u64 title_id, const Passphrase& passphrase) = 0; + virtual std::optional<std::vector<u8>> GetLaunchParameter(TitleIDVersion title) = 0; + protected: DirectoryGetter dir_getter; }; @@ -48,6 +51,8 @@ public: bool Clear(u64 title_id) override; void SetPassphrase(u64 title_id, const Passphrase& passphrase) override; + + std::optional<std::vector<u8>> GetLaunchParameter(TitleIDVersion title) override; }; std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter); |