Commit Graph

629 Commits

Author SHA1 Message Date
Sude
d430af63d0 Support XDG Base Directory Specification
Configuration files and cookies are now stored in "$XDG_CONFIG_HOME/lgogdownloader"
if $XDG_CONFIG_HOME is not set it will use "$HOME/.config/lgogdownloader"

XML files are now stored in "$XDG_CACHE_HOME/lgogdownloader/xml"
if $XDG_CACHE_HOME is not set it will use "$HOME/.cache/lgogdownloader/xml"
2013-12-11 11:27:53 +02:00
Sude
65f407d076 Close the file on memory and read error in Downloader::repairFile 2013-12-11 10:38:32 +02:00
Sude
c998207e08 Version 2.10 2013-11-29 15:47:08 +02:00
Sude
388ea9e038 Call Downloader::getGameDetails() from the functions that need it instead of using conditions in Downloader::getGameList() 2013-11-26 12:59:42 +02:00
Sude
8d690a920e Simplify output of update check 2013-11-26 12:31:20 +02:00
Sude
6b4010d9c5 Changed all remaining "negative" variables to "positive" in config.h
Code was becoming really confusing with all the double negatives in conditions, for example: if(!bNoInstallers)
Added some comments to code
2013-11-19 12:47:10 +02:00
Sude
c4585d3d61 API change: added duplicate handler for installers
API::getGameDetails now has a parameter to enable duplicate handling (default: false)
The duplicate handler applies a language id flag on the original installer so it shows support for multiple languages

Downloader uses duplicate handler by default
Added --no-duplicate-handling option to disable duplicate handler
2013-11-18 13:28:27 +02:00
Sude
1cd79a2292 Sort by title when using "--game free" 2013-11-17 11:01:35 +02:00
Sude
35e64bbe1e Change url for cover xml data 2013-11-14 15:52:14 +02:00
Sude
0d9c27d20a Added --status command and made createXML output easier to read
Version check before download now works without local XML data. However it is much slower without the XML data because it calculates MD5 for the files

Some changes to config.h
- Removed "bHelp" from config because it was not needed
- Changed "bNoColor" to "bColor"
- Changed "bNoUnicode" to "bUnicode"
2013-11-14 15:40:59 +02:00
Roman Kamyk
a63165d5a5 includes fix 2013-11-02 21:56:42 +02:00
Sude
1173aff367 Fix bug in Downloader::HTTP_Login 2013-11-02 21:10:01 +02:00
Sude
359df14b4a Fix login bug 2013-10-20 02:20:04 +03:00
Sude
4584b81a4b Version 2.9 2013-10-15 14:56:32 +03:00
Sude
f2794ededf Added --check-orphans to check for orphaned files
Checks for orphaned files (files found on local filesystem that are not found on GOG servers) and prints their path
2013-10-14 22:31:12 +03:00
Sude
34236e3774 Don't try to get extras from account page if --no-extras is used 2013-10-13 12:53:44 +03:00
Sude
08b0e10429 API changes: preliminary support for the new "silent" flag 2013-10-13 12:21:14 +03:00
Sude
eb0208fffa API changes: "#updated" flag is replaced by "notificated" flag 2013-10-13 12:16:25 +03:00
Sude
2a253f6357 Get details about game extras from account page 2013-10-13 11:55:46 +03:00
Sude
a183bb59e6 Allow automatic xml creation durring --repair --download 2013-09-04 21:03:43 +03:00
Sude
e6994d7f5f Fix for downloading missing files with --repair --download without xml data 2013-09-04 20:52:22 +03:00
Sude
c9668c66d2 Fix listing/downloading free games using "--game free" 2013-09-04 19:58:03 +03:00
Sude
795a131c15 Show download rate in MB/s when it exceeds 1MB/s 2013-08-27 10:01:04 +03:00
Sude
a05f9f8d60 Version 2.8 2013-08-11 16:37:22 +03:00
Sude
fe238a2959 Added support for language packs and improved patch detection 2013-08-09 23:14:10 +03:00
Sude
e0a238b587 Fix crash caused by a change in API response for patches
Also fixes a bug that caused some patches to be ignored (patch file number was not reset after while loop that increased it)
2013-08-09 18:29:39 +03:00
Sude
7a1aae0a06 Version 2.7 2013-08-02 16:22:51 +03:00
Sude
b73a095f5f Move the API constants from GlobalConstants to API as private members 2013-08-02 16:18:55 +03:00
Sude
c5d8665593 Added support for Portuguese and Korean installers 2013-08-02 16:03:06 +03:00
Sude
f992816465 Use proper English: renamed --unsecure to --insecure 2013-08-02 15:54:37 +03:00
Sude
7d24c589d2 Download missing files when repairing with --repair --download 2013-07-01 16:57:55 +03:00
Sude
b3792554bf Added curlSetOpt() method to API for setting curl options 2013-06-28 16:06:08 +03:00
Sude
9f715aa2d1 Enable --limit-rate for 32-bit systems 2013-06-28 15:49:00 +03:00
Sude
fe70090b74 Added --timeout option to set timeout for connection phase 2013-06-10 15:15:08 +03:00
Sude
b1db888094 Version 2.6 2013-06-08 00:51:30 +03:00
Sude
f1a138e6bf Simplify code by using std::to_string 2013-06-08 00:32:31 +03:00
Sude
d8272e30f8 Set some curl options in Downloader::init()
Removes some duplicate code
Downloader::getResponse restores write function to Downloader::writeData
2013-06-08 00:25:48 +03:00
Sude
eed1845428 Detect errors on login 2013-06-01 17:22:37 +03:00
Sude
f3ba069f50 Don't try to list extras if there aren't any 2013-05-23 22:01:57 +03:00
Sude
5b2c4ae00a Minor code cleanup, use std::to_string instead of stringstream 2013-05-23 16:04:31 +03:00
Sude
f11ff9e7e4 Added support for downloading patches 2013-05-15 01:28:37 +03:00
Sude
1c8f1d9885 Version 2.5 2013-05-04 19:49:49 +03:00
Sude
7a9dd503a1 Made API config private member 2013-05-04 19:46:42 +03:00
Sude
bc787e5f6c Some code cleanup for repairFile function 2013-04-29 11:06:15 +03:00
Sude
01430a5735 Code and comment cleanup 2013-04-28 18:46:37 +03:00
Sude
2a682ff666 Fix bug in language selection 2013-04-25 12:12:37 +03:00
Sude
e27c585ed7 Verify authenticity of SSL certificates by default
Added option --unsecure to disable authenticity verification
2013-04-25 12:05:17 +03:00
Sude
8b0de12fe4 Forgot to change a comment in 9ee5f75 2013-04-25 10:56:53 +03:00
Sude
9ee5f75bfb Rename global constants to better describe what they mean 2013-04-25 10:48:10 +03:00
Sude
1593c58a01 Add trailing slash to API urls 2013-04-24 14:39:00 +03:00