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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
(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
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
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
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
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
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
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
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
- 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
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
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