summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-10-02 08:35:39 -0400
committerGravatar Zach Hilman2019-10-02 08:35:43 -0400
commite55d086cc93ea33829e77a2e92be52bcf900767b (patch)
tree486fd9ddf5f0072aaee18cd69e399e33043eb314 /src/core
parentboxcat: Use updated game-asset API URL and tags (diff)
downloadyuzu-e55d086cc93ea33829e77a2e92be52bcf900767b.tar.gz
yuzu-e55d086cc93ea33829e77a2e92be52bcf900767b.tar.xz
yuzu-e55d086cc93ea33829e77a2e92be52bcf900767b.zip
qt: Add service dialog
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/bcat/backend/boxcat.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp
index 36eb2c094..e6ee0810b 100644
--- a/src/core/hle/service/bcat/backend/boxcat.cpp
+++ b/src/core/hle/service/bcat/backend/boxcat.cpp
@@ -364,18 +364,17 @@ void SynchronizeInternal(DirectoryGetter dir_getter, TitleIDVersion title,
364 364
365bool Boxcat::Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) { 365bool Boxcat::Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) {
366 is_syncing.exchange(true); 366 is_syncing.exchange(true);
367 std::thread([this, title, &progress] { 367 std::thread([this, title, &progress] { SynchronizeInternal(dir_getter, title, progress); })
368 SynchronizeInternal(dir_getter, title, progress); 368 .detach();
369 }).detach();
370 return true; 369 return true;
371} 370}
372 371
373bool Boxcat::SynchronizeDirectory(TitleIDVersion title, std::string name, 372bool Boxcat::SynchronizeDirectory(TitleIDVersion title, std::string name,
374 ProgressServiceBackend& progress) { 373 ProgressServiceBackend& progress) {
375 is_syncing.exchange(true); 374 is_syncing.exchange(true);
376 std::thread([this, title, name, &progress] { 375 std::thread(
377 SynchronizeInternal(dir_getter, title, progress, name); 376 [this, title, name, &progress] { SynchronizeInternal(dir_getter, title, progress, name); })
378 }).detach(); 377 .detach();
379 return true; 378 return true;
380} 379}
381 380