add plugin hdd dir menu

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@734 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 9699447317
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-08-20 (Fri, 20 Aug 2010)

Origin message was:
------------------
-add plugin hdd dir menu

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@734 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
Jacek Jendrzej
2010-08-20 19:11:12 +00:00
parent c90f17e380
commit 85c9284b7a
8 changed files with 28 additions and 3 deletions

View File

@@ -1012,6 +1012,7 @@ printf("***************************** rec dir %s timeshift dir %s\n", g_settings
// default plugin for movieplayer
g_settings.movieplayer_plugin = configfile.getString( "movieplayer_plugin", "Teletext" );
g_settings.onekey_plugin = configfile.getString( "onekey_plugin", "noplugin" );
g_settings.plugin_hdd_dir = configfile.getString( "plugin_hdd_dir", "/hdd/tuxbox/plugins" );
//rc-key configuration
g_settings.key_tvradio_mode = configfile.getInt32( "key_tvradio_mode", CRCInput::RC_nokey );
@@ -1525,6 +1526,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
// default plugin for movieplayer
configfile.setString ( "movieplayer_plugin", g_settings.movieplayer_plugin );
configfile.setString ( "onekey_plugin", g_settings.onekey_plugin );
configfile.setString ( "plugin_hdd_dir", g_settings.plugin_hdd_dir );
configfile.setInt32 ( "streaming_resolution", g_settings.streaming_resolution );
@@ -4579,6 +4581,23 @@ printf("New timeshift dir: %s\n", timeshiftDir);
return menu_return::RETURN_REPAINT;
}
else if(actionKey == "pluginhdddir") {
parent->hide();
CFileBrowser b;
b.Dir_Mode=true;
if (b.exec(g_settings.plugin_hdd_dir.c_str())) {
const char * newdir = b.getSelectedFile()->Name.c_str();
if(check_dir(newdir))
printf("Wrong/unsupported plugin dir %s\n", newdir);
else {
g_settings.plugin_hdd_dir = b.getSelectedFile()->Name;
SendSectionsdConfig();
g_PluginList->loadPlugins();
}
}
return menu_return::RETURN_REPAINT;
}
else if(actionKey == "select_font") {
parent->hide();
CFileBrowser fileBrowser;