add virtual plugin type 'not game'

the only maybe useful distinction between plugin types
is game / others, so add a 'virtual' plugin type which
represents everything but games
This commit is contained in:
Stefan Seyfried
2014-02-16 18:29:23 +01:00
parent 945452e35a
commit 44cd36c412
2 changed files with 4 additions and 10 deletions

View File

@@ -4,13 +4,7 @@
Copyright (C) 2001 Steffen Hehn 'McClean'
Homepage: http://dbox.cyberphoria.org/
Kommentar:
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
Aufbau und auch den Ausbaumoeglichkeiten gut aussehen. Neutrino basiert
auf der Client-Server Idee, diese GUI ist also von der direkten DBox-
Steuerung getrennt. Diese wird dann von Daemons uebernommen.
Copyright (C) 2011-2014 Stefan Seyfried
License: GPL
@@ -139,7 +133,6 @@ void CPlugins::scanDir(const char *dir)
// already exists in the list.
// This behavior is used to make sure plugins can be disabled
// by creating a .cfg in PLUGINDIR_VAR (PLUGINDIR often is read only).
if (!plugin_exists(new_plugin.filename))
{
plugin_list.push_back(new_plugin);
@@ -625,7 +618,7 @@ bool CPlugins::hasPlugin(CPlugins::p_type_t type)
for (std::vector<plugin>::iterator it=plugin_list.begin();
it!=plugin_list.end(); ++it)
{
if (it->type == type && !it->hide)
if ((it->type & type) && !it->hide)
return true;
}
return false;