mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- move PLUGINDIR_VAR to global.h to avoid some hardcoded paths
This commit is contained in:
@@ -81,9 +81,11 @@ void CControlAPI::init(CyhookHandler *hh)
|
||||
PLUGIN_DIRS[1].append("/scripts");
|
||||
PLUGIN_DIRS[2]=PLUGIN_DIRS[3]=hh->WebserverConfigList["WebsiteMain.directory"];
|
||||
PLUGIN_DIRS[3].append("/scripts");
|
||||
PLUGIN_DIRS[4]="/var/tuxbox/plugins";
|
||||
PLUGIN_DIRS[5]=PLUGINDIR;
|
||||
PLUGIN_DIRS[6]="/mnt/plugins";
|
||||
PLUGIN_DIRS[4]=GAMESDIR;
|
||||
PLUGIN_DIRS[5]=g_settings.plugin_hdd_dir;
|
||||
PLUGIN_DIRS[6]=PLUGINDIR_MNT;
|
||||
PLUGIN_DIRS[7]=PLUGINDIR_VAR;
|
||||
PLUGIN_DIRS[8]=PLUGINDIR;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -115,7 +115,7 @@ private:
|
||||
|
||||
|
||||
protected:
|
||||
static const unsigned int PLUGIN_DIR_COUNT = 7;
|
||||
static const unsigned int PLUGIN_DIR_COUNT = 9;
|
||||
static std::string PLUGIN_DIRS[PLUGIN_DIR_COUNT];
|
||||
CNeutrinoAPI *NeutrinoAPI;
|
||||
|
||||
|
Reference in New Issue
Block a user