mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
src/gui/plugins.cpp: fix sort pluins without index
This commit is contained in:
@@ -156,7 +156,7 @@ void CPlugins::loadPlugins()
|
|||||||
frameBuffer = CFrameBuffer::getInstance();
|
frameBuffer = CFrameBuffer::getInstance();
|
||||||
number_of_plugins = 0;
|
number_of_plugins = 0;
|
||||||
plugin_list.clear();
|
plugin_list.clear();
|
||||||
|
sindex = 100;
|
||||||
scanDir(g_settings.plugin_hdd_dir.c_str());
|
scanDir(g_settings.plugin_hdd_dir.c_str());
|
||||||
scanDir(PLUGINDIR_USB);
|
scanDir(PLUGINDIR_USB);
|
||||||
scanDir(PLUGINDIR_VAR);
|
scanDir(PLUGINDIR_VAR);
|
||||||
@@ -184,7 +184,7 @@ bool CPlugins::parseCfg(plugin *plugin_data)
|
|||||||
while (linecount < 20 && getline(inFile, line[linecount++]))
|
while (linecount < 20 && getline(inFile, line[linecount++]))
|
||||||
{};
|
{};
|
||||||
|
|
||||||
plugin_data->index = 0;
|
plugin_data->index = sindex++;
|
||||||
plugin_data->key = 0; //CRCInput::RC_nokey
|
plugin_data->key = 0; //CRCInput::RC_nokey
|
||||||
plugin_data->fb = false;
|
plugin_data->fb = false;
|
||||||
plugin_data->rc = false;
|
plugin_data->rc = false;
|
||||||
|
@@ -88,7 +88,7 @@ class CPlugins
|
|||||||
};
|
};
|
||||||
|
|
||||||
int number_of_plugins;
|
int number_of_plugins;
|
||||||
|
int sindex;
|
||||||
std::vector<plugin> plugin_list;
|
std::vector<plugin> plugin_list;
|
||||||
std::string plugin_dir;
|
std::string plugin_dir;
|
||||||
std::string scriptOutput;
|
std::string scriptOutput;
|
||||||
|
Reference in New Issue
Block a user