diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2015-02-13 21:28:25 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2015-02-13 21:28:25 +0100 |
commit | af54bd8bc8fde95cdb379bd0d2673ede234a0645 (patch) | |
tree | 00ba47356a050684d85e24f6a50ad7fbd1456166 /live.cpp | |
parent | 894daa8e959122e563d8d9f0e4bf2e7d324af081 (diff) | |
download | vdr-plugin-live-af54bd8bc8fde95cdb379bd0d2673ede234a0645.tar.gz vdr-plugin-live-af54bd8bc8fde95cdb379bd0d2673ede234a0645.tar.bz2 |
Only VDR versions which have an APIVERSION greater than 10729 are supported from now on.
This drop some conditional compilations and thus simplyfies overall maintanance.
Diffstat (limited to 'live.cpp')
-rw-r--r-- | live.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -24,9 +24,7 @@ const char *Plugin::VERSION = LIVEVERSION; const char *Plugin::DESCRIPTION = LIVESUMMARY; std::string Plugin::m_configDirectory; -#if APIVERSNUM > 10729 std::string Plugin::m_resourceDirectory; -#endif cUsers Users; @@ -47,22 +45,13 @@ bool Plugin::ProcessArgs(int argc, char *argv[]) bool Plugin::Start(void) { m_configDirectory = canonicalize_file_name(cPlugin::ConfigDirectory( PLUGIN_NAME_I18N )); -#if APIVERSNUM > 10729 m_resourceDirectory = canonicalize_file_name(cPlugin::ResourceDirectory( PLUGIN_NAME_I18N )); -#endif -#if VDRVERSNUM < 10507 - RegisterI18n( vdrlive::Phrases ); -#endif // force status monitor startup LiveStatusMonitor(); // preload files into file Cache -#if APIVERSNUM > 10729 PreLoadFileCache(m_resourceDirectory); -#else - PreLoadFileCache(m_configDirectory); -#endif // load users Users.Load(AddDirectory(m_configDirectory.c_str(), "users.conf"), true); |