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
This commit is contained in:
hikerstk 2011-05-16 13:11:37 +00:00
parent 709b73deb8
commit 859a77df0d

View File

@ -52,6 +52,9 @@ Addon::Addon(const XMLNode &xml)
xml.get("file", &m_zip_file );
xml.get("description", &m_description );
xml.get("image", &m_icon_url );
// If there is no image, use the icon to display
if(m_icon_url=="")
xml.get("icon", &m_icon_url );
xml.get("icon-revision", &m_icon_revision );
xml.get("size", &m_size );
m_icon_basename = StringUtils::getBasename(m_icon_url);