diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2019-10-01 09:13:09 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2019-10-01 09:13:09 -0400 |
| commit | 19c466dfb1f997eaa16fc9d9b832aaf3321adc40 (patch) | |
| tree | f5aa993c55239c4d5bb8af83496895fe9f98b7b0 /src/core/hle/service/bcat/backend | |
| parent | bcf1eafb8bd1a810fd33a7e7e06a86173b4bfb9f (diff) | |
bcat: Add FSC accessors for BCAT data
Ports BCAT to use FSC interface
Diffstat (limited to 'src/core/hle/service/bcat/backend')
| -rw-r--r-- | src/core/hle/service/bcat/backend/backend.h | 10 | ||||
| -rw-r--r-- | src/core/hle/service/bcat/backend/boxcat.cpp | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h index 50973a13a..3f5d8b5dd 100644 --- a/src/core/hle/service/bcat/backend/backend.h +++ b/src/core/hle/service/bcat/backend/backend.h @@ -57,11 +57,6 @@ static_assert(sizeof(DeliveryCacheProgressImpl) == 0x200, class ProgressServiceBackend { friend class IBcatService; - ProgressServiceBackend(std::string event_name); - - Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent(); - DeliveryCacheProgressImpl& GetImpl(); - public: // Clients should call this with true if any of the functions are going to be called from a // non-HLE thread and this class need to lock the hle mutex. (default is false) @@ -90,6 +85,11 @@ public: void FinishDownload(ResultCode result); private: + explicit ProgressServiceBackend(std::string event_name); + + Kernel::SharedPtr<Kernel::ReadableEvent> GetEvent(); + DeliveryCacheProgressImpl& GetImpl(); + void SignalUpdate() const; DeliveryCacheProgressImpl impl; diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp index 5bc2e22d7..2c3309268 100644 --- a/src/core/hle/service/bcat/backend/boxcat.cpp +++ b/src/core/hle/service/bcat/backend/boxcat.cpp @@ -364,17 +364,18 @@ void SynchronizeInternal(DirectoryGetter dir_getter, TitleIDVersion title, bool Boxcat::Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) { is_syncing.exchange(true); - std::thread([this, title, &progress] { SynchronizeInternal(dir_getter, title, progress); }) - .detach(); + std::thread([this, title, &progress] { + SynchronizeInternal(dir_getter, title, progress); + }).detach(); return true; } bool Boxcat::SynchronizeDirectory(TitleIDVersion title, std::string name, ProgressServiceBackend& progress) { is_syncing.exchange(true); - std::thread( - [this, title, name, &progress] { SynchronizeInternal(dir_getter, title, progress, name); }) - .detach(); + std::thread([this, title, name, &progress] { + SynchronizeInternal(dir_getter, title, progress, name); + }).detach(); return true; } |
