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:
parent
7f85271ec3
commit
b578458ac0
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user