can i change some part of code, to download filelist from dc++ 0.401?
where exacly?
downloading 0.401 filelist on dc++ 0.68+
Moderator: Moderators
-
- Posts: 32
- Joined: 2006-03-06 10:54
- Location: Poland
Re: downloading 0.401 filelist on dc++ 0.68+
Yes you need to change code in 0.68+, it is easy.adrian_007 wrote:can i change some part of code, to download filelist from dc++ 0.401?
DownloadManager.cpp, you need to use $Get command to get userlist from them instead of buggy $UGetBlock...adrian_007 wrote:where exacly?
In DC++ 0.695 it is function DownloadManager::checkDownloads, replace
Code: Select all
if(BOOLSETTING(COMPRESS_TRANSFERS) && aConn->isSet(UserConnection::FLAG_SUPPORTS_GETZBLOCK) && d->getSize() != -1 ) {
// This one, we'll download with a zblock download instead...
d->setFlag(Download::FLAG_ZDOWNLOAD);
aConn->getZBlock(d->getSource(), d->getPos(), d->getBytesLeft(), d->isSet(Download::FLAG_UTF8));
} else if(aConn->isSet(UserConnection::FLAG_SUPPORTS_XML_BZLIST) && d->isSet(Download::FLAG_UTF8)) {
Code: Select all
if(BOOLSETTING(COMPRESS_TRANSFERS) && aConn->isSet(UserConnection::FLAG_SUPPORTS_GETZBLOCK) && d->getSize() != -1 && d->isSet(Download::FLAG_USER_LIST) == false) {
// This one, we'll download with a zblock download instead...
d->setFlag(Download::FLAG_ZDOWNLOAD);
aConn->getZBlock(d->getSource(), d->getPos(), d->getBytesLeft(), d->isSet(Download::FLAG_UTF8));
} else if(aConn->isSet(UserConnection::FLAG_SUPPORTS_XML_BZLIST) && d->isSet(Download::FLAG_UTF8) && d->isSet(Download::FLAG_USER_LIST) == false) {