introduce configurable ZAPITDIR

Origin commit data
------------------
Commit: 6161eeef9b
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-19 (Tue, 19 Oct 2021)

Origin message was:
------------------
- introduce configurable ZAPITDIR
This commit is contained in:
vanhofen
2021-10-19 22:35:24 +02:00
parent 6325e6aebf
commit d497aa1008
20 changed files with 47 additions and 38 deletions

View File

@@ -660,7 +660,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
}
if(delete_all) {
my_system(3, "/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.conf");
my_system(3, "/bin/sh", "-c", "rm -f " ZAPITDIR "/*.conf");
CServiceManager::getInstance()->SatelliteList().clear();
CZapit::getInstance()->LoadSettings();
CZapit::getInstance()->GetConfig(zapitCfg);
@@ -686,7 +686,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
CFrameBuffer::getInstance()->Clear();
}
if(delete_chan) {
my_system(3, "/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.xml");
my_system(3, "/bin/sh", "-c", "rm -f " ZAPITDIR "/*.xml");
g_Zapit->reinitChannels();
}
if (delete_removed) {