head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2016.05.08.09.13.13; author wiz; state dead; branches; next 1.1; commitid T8qSxn7Hox8XTE5z; 1.1 date 2016.05.05.22.06.39; author joerg; state Exp; branches; next ; commitid TGANx02Fsagdhl5z; desc @@ 1.2 log @Updated lgogdownloader to 2.28. LGOGDownloader 2.28 - Fixed compiling with JsonCpp 1.7.1 - Moved GOG website related members of Downloader class to new Website class * Downloader::HTTP_Login --> Website::Login * Downloader::getGames --> Website::getGames * Downloader::getFreeGames --> Website::getFreeGames * Downloader::getGameDetailsJSON --> Website::getGameDetailsJSON * Getting wishlist details was split from Downloader::showWishlist to Website::getWishlistItems function - Moved login checks from the login function to their own functions - Added function to check if user is logged in to GOG website * Website::IsLoggedIn - Changed gameFile format and gamedetails cache format * gameFile now contains gamename and file type info * Game details cache format has been changed to match gameFile changes * Cache has a new "gamedetails-cache-version" field that can be used to detect cache format changes - Fixed downloading language packs with file id - Started using CURLOPT_XFERINFOFUNCTION instead of deprecated CURLOPT_PROGRESSFUNCTION * libcurl >= 7.32.0 is required @ text @$NetBSD: patch-src_util.cpp,v 1.1 2016/05/05 22:06:39 joerg Exp $ --- src/util.cpp.orig 2016-05-04 12:02:30.617950547 +0000 +++ src/util.cpp @@@@ -388,11 +388,11 @@@@ int Util::getTerminalWidth() void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vector &urls) { if(root.size() > 0) { - for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it) + for(Json::ValueConstIterator it = root.begin() ; it != root.end() ; ++it) { if (it.key() == "downloaderUrl") { - Json::Value& url = *it; + const Json::Value& url = *it; urls.push_back(url.asString()); } else @ 1.1 log @With newer jsoncpp interface, the iterator has to be constant. @ text @d1 1 a1 1 $NetBSD$ @