Commit Graph

258 Commits

Author SHA1 Message Date
hikerstk
c7f501a845 Bugfix: the id of an addon should be taken from the id field, and only use
the lowercase name if no id is specified.
This might potentially break existing addons - though atm I don't think we
have any addons that have an id different from the lowercase name.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9506 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 07:03:54 +00:00
hikerstk
10062e8b44 Applied patch from nathanm32292394 to fix minor memory
leak (#369) - thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-12 04:24:49 +00:00
auria
a031bd5731 Display a message when clicking on the add-ons icon and it is not enabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-31 01:20:41 +00:00
auria
c19572dcfb Add code to resolve all numeric XML entities
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9389 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-30 20:14:30 +00:00
hikerstk
60345bc424 Removed unused support for 'icon' (since the addon webpage
guarantees that 'image' is always defined now).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-26 01:41:26 +00:00
hikerstk
4a3d737620 Added support for arena-addons (as a separate tab).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9109 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-27 22:49:15 +00:00
hikerstk
b578458ac0 Added support to ignore addons, see #293.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-27 11:11:17 +00:00
auria
9f33ff77e8 Added support for some XML entities in add-ons description
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9060 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-25 22:38:19 +00:00
hikerstk
f3347d5937 Fixed error handling so that STK doesn't crash if it can't
write downloaded data, see #280.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9020 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-23 12:03:15 +00:00
hikerstk
a3c9eac53b Fixed #274: unzipping of addons file would actually copy
data/testures/materials.xml instead of materials.xml from the
zip file.
To fix any already downloaded addon, they have to be uninstalled
and installed from scratch again.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-13 12:27:19 +00:00
hikerstk
425dbd8f2e Added a 'bad badge' indicator if there is a problem downloading news.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-07 06:54:12 +00:00
hikerstk
f58b07ec38 Fixed bug in 'addon installed' condition.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8791 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-31 11:39:15 +00:00
hikerstk
48d1a3aaab Only accept news.xml if vesion==1 - to avoid problems if we should
change the format (though a new xml format would require a new
addons directory anyway to avoid problems with existing installed
addons).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8790 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-31 11:32:12 +00:00
hikerstk
404037c6e4 If a download of the news.xml file fails, retry with the
server reset to the defaults (in case that the url
got corrupted), see #197.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8789 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-31 07:20:20 +00:00
hikerstk
e151f35825 Added support for news messages to be filtered for addons
that are not installed. Syntax: "addons_id not installed".
Fixed ticket #127.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-31 06:58:11 +00:00
hikerstk
89277bc963 Make sure that only the latest (working) revision of an addon
is used (atm there is no support for displaying the revision
number of an addons due to space/gui restrictions).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 22:14:11 +00:00
hikerstk
637a77906f Fixed sort order of addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 22:12:09 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
hikerstk
6f0b97ba08 Removed ADDONS_MANAGER symbol completely.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-27 00:53:18 +00:00
hikerstk
56d95382b0 Make sure error messages displayed in the news bar are translated
even if the language is changed from the menu (i.e. while the
message is being shown). This will not happen for the message
currently scrolling, but the next time the message is displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-26 12:54:49 +00:00
hikerstk
610eabb20d Fixed reload functionality.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 06:57:21 +00:00
hikerstk
a94fa2d764 Fixed compilation problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 01:11:23 +00:00
hikerstk
cbd83c24f6 Started to add a 'reload' button to refresh the addons.
This is WIP, so best not to press this button. Maybe I
should rename the button to read "Don't press"  ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 01:09:25 +00:00
hikerstk
13cc69246f Added better error handling in case of network problems with the addon manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 12:15:54 +00:00
hikerstk
4333eccc5c Started to replace asynchronous thread cancellation with pthread_join/exit
combination (which mean the code now depends on libcurl never to hang!!).
This should (again ;) ) fix #235.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 05:27:54 +00:00
hikerstk
f83cbe28bb Tried to fix ticket #235 (and probably #245), though it uses
asynchronous cancelling, which isn't ideal (see man page
pthread_setcanceltype for details).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-23 12:32:41 +00:00
auria
4157f7dc10 More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:45:17 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
d501753ef2 Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
hikerstk
3ba9407518 Fixed first startup of STK (i.e. when no config.xml exist, and the
user is asked if he wants to connect). Fixed also some problems
with enabling/disabling internet news in the GUI.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8658 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 14:09:02 +00:00
auria
3ebdd0e396 revert previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 01:53:17 +00:00
auria
80f3f1a55c Apply patch by nathanm32292394
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 01:40:58 +00:00
hikerstk
be258f1b75 Added support for sorting addons by column; renamed addons.stkgui
to addons_screen.stkgui to indicate better where it is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-19 22:43:27 +00:00
hikerstk
8d760b11cd Added display of the date for addons (should we perhaps make the
strftime format translatable?).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8645 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-19 13:09:53 +00:00
hikerstk
0e589e0db5 1) Removed unsupported 'fan' and 'high quality' flags.
2) Use multi-line label instead of manually splitting
   the flags for two separate labels.
3) Translated flags that will be shown to 'normal'
   users (i.e. with no artist debug defined).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8641 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-19 00:56:56 +00:00
hikerstk
078ba48e63 Store designer and status flag for addons. Designer is now
shown in table view of all addons.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8629 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-17 12:01:03 +00:00
hikerstk
c83a6c990f Fixed typo in log message.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8628 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-17 11:59:29 +00:00
hikerstk
7fb3a6fb0b Removed compiler warnings about order of initialisations.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8624 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-17 05:32:36 +00:00
hikerstk
9bdc12ba95 Removed unused HC_SLEEP command.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8623 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-17 05:31:33 +00:00
mbjornstk
53640b68c2 Change printf to fprintf (as other err prints in same file) so it compiles.
Otherwise it halted with g++ 4.6 with the following test:
addons/addons_manager.cpp: In member function ‘void* AddonsManager::downloadIcons()’:
addons/addons_manager.cpp:157:41: error: cannot pass objects of non-trivially-copyable type ‘const string’ through ‘...’
addons/addons_manager.cpp:157:41: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘const string’ [-Wformat]


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8622 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-17 04:24:56 +00:00
hikerstk
8cd2eb1e16 Renamed Synchronised::get()/set() to getAtomic()/setAtomic()
to better indicate what those functions are doing.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8611 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-16 21:49:58 +00:00
hikerstk
e0107c35eb 1) Fixed handling of aborts (previously an abort during installation
could end in cancelling a currently ongoing icon download, e.g. if
   icons were still downloading, and the download of the addon had not
   been started yet).
2) Fixed potential deadlocks or crash problems at exit.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-16 13:17:03 +00:00
hikerstk
859a77df0d Added support for new XML format which can specify either
an image or an icon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8608 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-16 13:11:37 +00:00
hikerstk
709b73deb8 Added warning message in case of an addon that has no image defined.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8607 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-16 13:10:38 +00:00
hikerstk
c3a0007bd5 Bugfix:
1) If a downloaded file already existed (e.g. an aborted download previously),
   the rename from *.part might fail (the behaviour of rename in this case
   is unspecified).
2) Reset the abort flag if a download is aborted - otherwise no further download
   is possible.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8585 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-15 12:56:07 +00:00
hikerstk
6ccd28d7b2 Fixed race condition on game end: if the network thread quit between the lines:
if(m_thread_id)
   pthread_cancel(*m_thread_id)
a crash in pthread_cancel happened. Changing m_thread_id is now protected
by a mutex.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8564 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 06:49:12 +00:00
hikerstk
c52fa8ceff 1) Fixed race condition: the network thread could access network_http
before it is assigned.
2) The network thread is now signalled to quit earlier, giving it more
   time to quit cleanly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 06:29:12 +00:00
hikerstk
498a0a104e 1) Moved news message handling into a separate object.
2) Added prioritised request list to network manager.
3) Fixed ticket 217 (crash at shutdown), which happens if 
   the background thread downloading the icons is still
   active when STK is quit (and then accessing managers
   that have been deleted).
4) Handled partial downloads correctly: files are now
   downloaded with ".part" appended to the filename,
   and only upon a successful download renamed to 
   the original name.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-12 23:51:00 +00:00
hikerstk
8475ac6d63 Switched addons verbosity handling to use the new bitmap.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-04 22:04:12 +00:00
hikerstk
559edb6178 Renamed Track::m_all_meshes to m_all_cached_meshes, IrrDriver::removeMesh
to IrrDriver::removeFromCache to better describe their functions.
Started to add proper freeing of cached track meshes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 11:47:33 +00:00
hikerstk
577d837588 Removes tabs, added full path of downloaded file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 00:13:29 +00:00
hikerstk
5cc146fefe Improved error handling in case that an unreliable network connection
exist and the libcurl thread does not time out and can't be aborted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 00:25:17 +00:00
hikerstk
a22b948810 Addons now show the size of the package to download.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-18 07:11:12 +00:00
hikerstk
54dac6c155 Fixed versionToInt which would give a higher version number to a rc
than to the actual release (r8348 on 0.7.1).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-14 05:08:45 +00:00
hikerstk
d1e59c20e8 Added functions to get the installation directory of addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-07 01:32:58 +00:00
hikerstk
ea32a4d52e Started to update addon loader to support new xml structure. It's not expected
to work yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-04 23:26:25 +00:00
hikerstk
3a2c7e2480 Added suport for "-rc?" at the end of version numbers (for comparison
of news and stk version numbers).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8200 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 22:22:15 +00:00
hikerstk
0f938f2863 Removed functions that are deprecated in irrlicht 1.8.
Note that you need the latest dependency packages to build STK now!!!!!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8197 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 13:52:32 +00:00
hikerstk
d922f47515 Applied Stephen's patch to use the new stkaddons.net url for the news
server and also to allow redirections in curl.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8171 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 02:49:29 +00:00
hikerstk
4f65cd539b Looks like !a==b is not the same as a!=b if a is a UserConfigParams.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 06:18:29 +00:00
hikerstk
9e8a53631e The internet status saved in the user config file can now have
three values: not-asked, allowed, not allowed. It defaults to
'not asked', which will enable us to show a popup message
the first time STK is started.

NOTE: you have to enable internet news in the UI settings now!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 05:10:45 +00:00
hikerstk
bca295bb97 Fixed stk version tests for news messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 02:39:20 +00:00
hikerstk
d5f1d8ad04 Added support for VERSION="svn" (in addition to VERSION="SVN").
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8140 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 02:30:47 +00:00
hikerstk
b14c8c9c86 Fixed typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 01:10:08 +00:00
auria
b548b1bc93 Rename VERSIOn to STKVERSION
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:41:25 +00:00
hikerstk
2d2b3abad8 If the STK version is 'SVN', return '99.99.999' as a version number.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:29:35 +00:00
hikerstk
b588c65b0a Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 21:53:39 +00:00
hikerstk
dd333becc1 Added support for conditional news messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 21:48:42 +00:00
hikerstk
426cf060b2 Commented out disabling of news messages after they have been
displayed a certain number of times (using #ifdef
NEWS_MESSAGE_REMOVAL, so it can be enabled easily again).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 10:56:08 +00:00
hikerstk
ca651b37b3 Removed all #ifdef VERSION, since VERSION is necessary to set the user-agent
for the news server, so we detect any problems with VERSION at compile time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 22:25:20 +00:00
hikerstk
5eee0884e2 Added more debug prints (if verbosity is set).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:58:50 +00:00
hikerstk
86bcc57f41 Fixed windows compilation (where pthread_t is a struct, not a integer like type).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8100 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:34:36 +00:00
hikerstk
6bd2d0b3b5 Fixed crash at end if threads could not be created. Added appropriate
warning, and made more prints depend on verbosity level.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:06:21 +00:00
hikerstk
b2ab95ff16 Made the 'enable internet' button work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 21:02:00 +00:00
hikerstk
6867018d52 Enabled news (but not addons) in normal debug mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8086 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 12:10:07 +00:00
hikerstk
30d39e30f0 Read in the number of times a message was displayed from the user config file,
and discared messages that have been displayed often enough.
Note that this is mostly a first test, we might want to only increase the
display counter once each time STK is started or so.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8058 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 11:23:17 +00:00
hikerstk
ff152bfeed Save number of times a message is displayed to the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8057 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 03:20:21 +00:00
hikerstk
ebda46f19a Removed time between consecutive scrolled test displays.
Added count of how often a message is being (fully) displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-24 21:28:50 +00:00
hikerstk
f75f306737 Added horizontally scrolling to the news message, and support for multiple
news messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-24 21:10:36 +00:00
hikerstk
1815b6f223 Added files missing in previous commit (started adding
support for new addon list, but that's work-in-progress).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 12:07:16 +00:00
hikerstk
084604f9ab Added support for downloading news at a specified frequency only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8032 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 05:54:12 +00:00
hikerstk
954b420446 Started to add support for downloading news from the addon server
at a specified interval only (e.g. only download every 2nd day).
Not fully working yet, might not work on linux/mac atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 03:57:49 +00:00
hikerstk
a9f73b26be Added Stephen's patch to include a user agent setting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 04:08:36 +00:00
hikerstk
34961aa0ea First updates to work with new addon webpage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:27:45 +00:00
hikerstk
700093eb4d Added FIXME for addons manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 11:25:37 +00:00
hikerstk
ce2e997ab4 Fixed saving of which addons are installed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-25 07:13:21 +00:00
hikerstk
e4b86ffc5d STK would hang if the user quits before the network_http object
was fully initialised (the separate thread did not test for
m_command==HC_QUIT before the cond_wait, and if the signal had
already been sent, the thread would not come back from the wait,
causing STK to hang).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 22:51:58 +00:00
auria
987d4ebd3f Fixed other warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:59:38 +00:00
auria
e1eb3ec1e7 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:58:54 +00:00
hikerstk
6eddb2baf9 Added proper aborting of curl download threads.
Print warning and progress reports only with
verbosity 3 or above, all addons messages now
start with [addons].


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 04:24:55 +00:00
hikerstk
6278343553 Handle incorrect zip files better.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 06:06:54 +00:00
hikerstk
a4ee467c49 Started to add some error handling, fixed handling of zip files
with directories in them.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 05:44:33 +00:00
hikerstk
dbe6395c1e 1) Changed queue and addon vector to use SynchronisedVector in order
to hide more pthread calls.
2) Started to work on screen layout.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7401 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 00:58:11 +00:00
hikerstk
e5a5a7dc33 Fixed printing of std::string, replaced tab.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-12 02:16:34 +00:00
hikerstk
0b6981022f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 23:09:13 +00:00
hikerstk
b527abab17 Fixed compilation on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 23:08:27 +00:00
hikerstk
9dde70687f Implemented icon caching, and updated to support the future
web page (unfortunately the web server isn't up to that
standard yet, so expect error messages, addons that don't
work etc.).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 22:49:55 +00:00
hikerstk
37b057a60e Removed unused m_abort variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 20:56:32 +00:00
hikerstk
e7d5b2314a Store icons in addons/icons and zip files in addons/tmp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 20:50:23 +00:00
hikerstk
fcbd7a4614 Fixed incorrect case of unzipped files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 23:07:07 +00:00
hikerstk
de50274e96 Fixed crash when installing a new addon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 22:20:52 +00:00
hikerstk
a4db783f7e Fixed deleting installed addons.
NOTE: it is still NOT safe to use this, esp. now that there is code to remove a directory :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 21:54:12 +00:00
hikerstk
0bbcfc2361 Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 21:50:07 +00:00
xapantu
56450a708a Added error handling in the addons code to handle path error when extracting archove files.
(Feel free to remove it if you find a better way ;) )

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 13:47:16 +00:00
xapantu
b9d3841fd9 Fix a bug with addons installing:
A directory was created, with the addons name, in lowercase, whereas it tried to instal it in the addons name, in standard case (e.g. python vs Python).
So, it worked on Windows and Mac OS X, since they aren't case sensitive, but we had a segfault on Linux

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7266 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 13:38:35 +00:00
hikerstk
f97067d313 Started work on deleting installed updates; deleted unused variables
and file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 06:02:17 +00:00
hikerstk
3c729b4b0f 1) Added proper handling and detection of installed addons
2) Moved addon related data files into a separate 'addons' directory.
3) Directory names of addons are now lower case.
(Still addons are not stable enough to be used!)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 21:49:17 +00:00
auria
856d184a35 Fixed warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 19:01:09 +00:00
hikerstk
54b7d57d63 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7246 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 04:35:35 +00:00
hikerstk
1858a2e9f1 Removed the need of zip files including a 'file list' file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 21:47:54 +00:00
hikerstk
76b595e303 Fixed incorrect kart display after installing a new kart
(still pretty much work in progress, so not recommended to use right now).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 12:17:43 +00:00
hikerstk
7e34b5d970 Further improvements to addons loading. Addons are now downloaded and installed,
but the kart icon display is still messed up (restarting stk solves that)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 03:34:16 +00:00
hikerstk
e98f95697c Fixed progress callback for curl (incorrect parameter declaration).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7216 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 03:21:14 +00:00
hikerstk
6129cfaa39 Made NetworkHttp::downloadFileSynchron to be able to be used from a thread;
fixed addons_loading to display the icon correctly.
Note: addons installing will still crash.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7198 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 23:05:54 +00:00
hikerstk
cdc1591a11 Some code cleanups, mostly for addons_loading.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7190 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 05:40:33 +00:00
mbjornstk
9dbd09f812 Remove svn:executable prop.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 03:02:07 +00:00
hikerstk
f859156e76 Completely remove used of m_index (i.e. the addons_manager
does not have a concept of a current addon anymore).
Note that downloading addons still crashes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-29 23:19:26 +00:00
hikerstk
141ae9f5da Moved AddonProp into a separate class Addon with proper
getter; started to remove usage of m_index in addon_manager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7185 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-29 21:52:33 +00:00
hikerstk
d78310c9e3 Made ListWidget::addItem to take const &; started to remove use of
m_index in addon_manager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7180 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-29 05:43:10 +00:00
hikerstk
ce986d623d Many style changes and code improvements to addons management.
The addons icon is now greyed out in case of an error (and till
the list of addons is downloaded, though usually that is done by
the time the main gui is shown). Moved synchronisations/threading
from addons_manager to network_http. Added 'Synchron' template
to hide usage of mutex to provide synchronised accesses to a variable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 22:48:44 +00:00
auria
5bd9afdd7f Big refactor : move a lot of strings and config files to use wide strings. For instance to be able to cope with foreign characters in player names
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 01:29:36 +00:00
hikerstk
588870d9bd Renamed network.?pp to network_http.?pp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 10:37:23 +00:00
hikerstk
29e29c7bb7 Renamed addons.?pp to addons_manager.?pp.
NOTE: make distclean is most likely necessary on linux!!!!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 06:00:58 +00:00
auria
a49c2f81e7 Fixed compilation (#include <string.h> includes the old C string functions, not std::string)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 23:39:59 +00:00
hikerstk
b5837a624b Many more coding style adjustments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 22:06:38 +00:00
hikerstk
13241636d4 Simplified loading of news: no more threading in main_menu.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 06:13:40 +00:00
hikerstk
aa3b801dba Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 23:09:12 +00:00
hikerstk
8ecee44a35 Renamed getConfigFile to getDataFile (since getConfigFile
would actually not return a directory under getConfigDir).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:59:06 +00:00
hikerstk
f5662118c6 Made addon manager compiler with windows (though not working yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:07:14 +00:00
auria
cb78ded2ed Tidy up logging + other minor fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 17:19:13 +00:00
xapantu
23143a4018 Fix addons when we are offline:
- They can't be updated
- It doesn't crash when we uninstall them

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6483 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 17:04:58 +00:00
xapantu
ead0f00638 Add addons search path for the tracks and reload the tracks list when an addons is installed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-16 14:01:17 +00:00
xapantu
a087e00214 Adding update support for the addons and increase the size of the buttons in the addon dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6230 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-09 16:44:12 +00:00
xapantu
0de6fc6485 Change the message for addons : 'Writing XML file' to 'Reloading karts list', it is more user friendly and honnest
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-12 17:06:40 +00:00
xapantu
788def7924 Fix the addons reloading
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-12 17:04:34 +00:00
xapantu
96abb55c7d Change the name of the addons screen (from options to addons)
Use a single pointer for addons, it is now initialized in main()
Working on the update screen, we can now see which addons can be updated

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:02:48 +00:00
xapantu
5602c1663e Fix the segfault when going to the network or the kart selection screen after going to the addons menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5924 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 17:11:46 +00:00
xapantu
4fd864fc4b Comment useless variable to remove compiler warning (and optimize a little)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 17:58:51 +00:00
xapantu
c6b5ba2e76 Adding a 's' to the addons type when removing it directory, it is data/kart, not data/karts ^^
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 16:41:10 +00:00
xapantu
58637fb82a Move removeDirectory to file_manager (for addons uninstall)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 16:30:17 +00:00
xapantu
8af8d1ab69 Improve the 'download in progress code' to be less verbose
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:15:31 +00:00
xapantu
57b5c788ea Adding chinese language in gen-mo (not added yet), tab system in the addons menu and some others very little things
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-28 17:46:48 +00:00
auria
d1bfdd7546 Moved mutex from header to .cpp file, since defining one instance of the mutex for each fiel that includes the download manager is almost certainly not what was intended
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-09 00:41:46 +00:00
xapantu
1f7d07a3ae Redirection system to use another addons server
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 19:31:54 +00:00
xapantu
ad6785a2b2 Start a class for the network; use sample functions is getting dirty.
Starting to implement the 'redirection' system (e.g. if we want to change the server

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 17:02:08 +00:00
auria
5efcf2fd90 Updated ocean and peach skins to also include scrollbars + fixed invalid pointer usage in addons that caused crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:56:58 +00:00
xapantu
6a51351181 Adding a progress text to show the percent already downloaded of the addons inthe addons dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 17:47:05 +00:00
xapantu
8ea7b2d2b9 Improve error handling for network connexion (use a boolean now)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 14:21:14 +00:00
xapantu
29a5a265ee Adding a progress function for download, it is a bit too verbose...
Error handling

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 14:19:00 +00:00
xapantu
764c70a108 Uncomment the network code; it was commented and no files could be downloaded, it causes the crash when we started stk (I disabled it in commit 3861, it was an error :( )
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5645 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-05 12:34:59 +00:00