mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- adzap: port code from martiis-neutrino-mp
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
#include <driver/radiotext.h>
|
||||
#include <driver/scanepg.h>
|
||||
|
||||
#include "gui/adzap.h"
|
||||
#include "gui/audiomute.h"
|
||||
#include "gui/audioplayer.h"
|
||||
#include "gui/bouquetlist.h"
|
||||
@@ -828,6 +829,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
}
|
||||
g_settings.epg_search_history_size = g_settings.epg_search_history.size();
|
||||
|
||||
g_settings.adzap_zapBackPeriod = configfile.getInt32("adzap_zapBackPeriod", 180);
|
||||
|
||||
// USERMENU -> in system/settings.h
|
||||
//-------------------------------------------
|
||||
@@ -1314,6 +1316,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt64("startchanneltv_id", g_settings.startchanneltv_id);
|
||||
configfile.setInt64("startchannelradio_id", g_settings.startchannelradio_id);
|
||||
configfile.setInt32("uselastchannel", g_settings.uselastchannel);
|
||||
configfile.setInt32("adzap_zapBackPeriod", g_settings.adzap_zapBackPeriod);
|
||||
//epg search
|
||||
g_settings.epg_search_history_size = g_settings.epg_search_history.size();
|
||||
if (g_settings.epg_search_history_size > g_settings.epg_search_history_max)
|
||||
@@ -4000,6 +4003,10 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else if(actionKey == "adzap") {
|
||||
CAdZapMenu::getInstance()->exec(parent, "adzap");
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if(actionKey == "moviedir") {
|
||||
parent->hide();
|
||||
|
||||
|
Reference in New Issue
Block a user