summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-02-29Re-download updates when their checksum no longer matchesThorbjørn Lindeijer1-25/+20
The Mana World currently likes to just update its "TMW.zip" file, whereas updates were always given unique names in the past. With this change, the client checks the Adler32 checksum to know when it should re-download an update file. This matches the behavior of ManaPlus commit 96150f1aeacf55d311c41ffe12d9e754b1cda001.
2024-02-22General code cleanupsThorbjørn Lindeijer1-7/+1
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-02-02Fixed use of deprecated CURLOPT_PROGRESSFUNCTION optionThorbjørn Lindeijer1-8/+8
Closes #51
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-12/+12
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2024-01-25Ported to SDL2Thorbjørn Lindeijer1-1/+1
2012-04-02Potentially fixed problems with user agent in Windows buildsThorbjørn Lindeijer1-3/+5
The Windows releases have not been properly identifying themselves, and it seems to be due to a compiler issue, as discovered by Stefan Dombrowski (@cody). He did a similar change but didn't push it anywhere so I've redone it. The line that is now split up was very preprocessor-heavy, which may have been part of the problem, but we'll probably never know what it was exactly.
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-06-05Removing unknown conversion type character 'l' in formatStefan Dombrowski1-1/+1
This is a problem with gcc 4.4.1. Reviewed-by: Bjorn, Jaxad0127
2011-06-03Replace SDL_types.h with cstdintJared Adams1-2/+2
This required moving to C++0x, so it does that too, and fixes a few errors with that. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-2/+2
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-06-03Cleanup some logging statementsJared Adams1-2/+2
Reviewed-by: Thorbjørn Lindeijer
2010-02-27Report more info on client in cURL useragent and DesktopJared Adams1-5/+6
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-21Do some more copyright header cleanupsJared Adams1-1/+0
Fix "(C) 2009-2009" to just "(C) 2009" Fix "(C) 2010 TMW" to "(C) 2010 Mana" Remove TMW compyright on (hopefully all) files added after 0.0.29.1
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-11Allow redirects when downloading updatesBen Longbons1-0/+1
Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-02-07Cleanup some memory issuesJared Adams1-2/+4
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-28Added virtual destructors, some implicit casts, and a couple of type changes.Daniel Bradshaw1-3/+3
Many warnings removed. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-01-12Standardize header orderJared Adams1-1/+2
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-12-19Added support for resources.xml from update server... Also added option to ↵Chuck Miller1-1/+1
download music optionally I had to edit the XML wrapper a bit, basicilly its constructor can now take a optional thrid arguement which will tell it to use a resman or open the file directly Also I added fallback support for the old resouce2.txt so servers don't have to upgrade if they do not want to
2009-12-04Fixing multi thread crash.Andrei Karas1-4/+27
2009-10-24More rebrandingJared Adams1-2/+2
2009-10-13Handle canceled downloads more gracefullyJared Adams1-2/+13
2009-10-13Fix a compilation warningJared Adams1-1/+1
I don't get the warning on newer GCC.
2009-10-13Forgot the actual download classJared Adams1-0/+295