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
This commit is contained in:
hikerstk 2011-06-27 11:11:17 +00:00
parent 7f85271ec3
commit b578458ac0
2 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public:
AS_ALPHA = 0x0002,
AS_BETA = 0x0004,
AS_RC = 0x0008,
//AS_FAN = 0x0010, currently not supported
AS_INVISIBLE= 0x0010,
//AS_HQ = 0x0020, currently not supported
AS_DFSG = 0x0040,
AS_FEATURED = 0x0080,

View File

@ -117,6 +117,9 @@ void AddonsScreen::loadList()
const Addon &addon = addons_manager->getAddon(i);
// Ignore addons of a different type
if(addon.getType()!=m_type) continue;
// Ignore invisible addons
if(addon.testStatus(Addon::AS_INVISIBLE))
continue;
if(!UserConfigParams::m_artist_debug_mode &&
!addon.testStatus(Addon::AS_APPROVED) )
continue;