From 634eb4a183943df35d70694524347a6a19a5e61c Mon Sep 17 00:00:00 2001 From: Deltadroid Date: Sun, 30 Apr 2023 09:12:15 +0200 Subject: [PATCH] Replace status_t with disk_status libtorrent 2.1 has made the following change: "make status_t a proper flag type, to clean up oversized_file indication from disk subsystem" PR #18879. --- src/base/bittorrent/customstorage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/bittorrent/customstorage.cpp b/src/base/bittorrent/customstorage.cpp index b369ba990..74f4f9e21 100644 --- a/src/base/bittorrent/customstorage.cpp +++ b/src/base/bittorrent/customstorage.cpp @@ -120,7 +120,11 @@ void CustomDiskIOThread::async_move_storage(lt::storage_index_t storage, std::st m_nativeDiskIO->async_move_storage(storage, path, flags , [=, handler = std::move(handler)](lt::status_t status, const std::string &path, const lt::storage_error &error) { +#if LIBTORRENT_VERSION_NUM < 20100 if ((status != lt::status_t::fatal_disk_error) && (status != lt::status_t::file_exist)) +#else + if ((status != lt::disk_status::fatal_disk_error) && (status != lt::disk_status::file_exist)) +#endif m_storageData[storage].savePath = newSavePath; handler(status, path, error);