Use custom storage when reloading torrent

PR #20998.
This commit is contained in:
Vladimir Golovnev
2024-06-28 07:14:19 +03:00
committed by Vladimir Golovnev (Glassez)
parent a3a53e2e0e
commit 78c549f83e
2 changed files with 9 additions and 2 deletions

View File

@@ -240,11 +240,11 @@ void CustomDiskIOThread::handleCompleteFiles(lt::storage_index_t storage, const
lt::storage_interface *customStorageConstructor(const lt::storage_params &params, lt::file_pool &pool)
{
return new CustomStorage {params, pool};
return new CustomStorage(params, pool);
}
CustomStorage::CustomStorage(const lt::storage_params &params, lt::file_pool &filePool)
: lt::default_storage {params, filePool}
: lt::default_storage(params, filePool)
, m_savePath {params.path}
{
}