diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2019-10-07 01:35:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 01:35:12 +0200 |
commit | dcdd887df3549d41c3fdaf4ad8a20218179039d5 (patch) | |
tree | ece0f2275d10663f4b49fe737c6401536d0758c8 /src/core/hle/service/bcat/backend/backend.h | |
parent | Merge pull request #2955 from lioncash/allocator (diff) | |
parent | bcat/module: Silence truncation warnings (diff) | |
download | yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar.gz yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar.bz2 yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar.lz yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar.xz yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.tar.zst yuzu-dcdd887df3549d41c3fdaf4ad8a20218179039d5.zip |
Diffstat (limited to 'src/core/hle/service/bcat/backend/backend.h')
-rw-r--r-- | src/core/hle/service/bcat/backend/backend.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h index 3f5d8b5dd..51dbd3316 100644 --- a/src/core/hle/service/bcat/backend/backend.h +++ b/src/core/hle/service/bcat/backend/backend.h @@ -6,6 +6,9 @@ #include <functional> #include <optional> +#include <string> +#include <string_view> + #include "common/common_types.h" #include "core/file_sys/vfs_types.h" #include "core/hle/kernel/readable_event.h" @@ -85,14 +88,14 @@ public: void FinishDownload(ResultCode result); private: - explicit ProgressServiceBackend(std::string event_name); + explicit ProgressServiceBackend(std::string_view event_name); - Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent(); + Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent() const; DeliveryCacheProgressImpl& GetImpl(); void SignalUpdate() const; - DeliveryCacheProgressImpl impl; + DeliveryCacheProgressImpl impl{}; Kernel::EventPair event; bool need_hle_lock = false; }; @@ -128,7 +131,7 @@ protected: // A backend of BCAT that provides no operation. class NullBackend : public Backend { public: - explicit NullBackend(const DirectoryGetter& getter); + explicit NullBackend(DirectoryGetter getter); ~NullBackend() override; bool Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) override; |