zapit/src/zapit.cpp: rename CONFIGFILE to ZAPITCONFIGFILE to avoid conflicts

This commit is contained in:
[CST] Focus
2015-01-15 15:16:39 +03:00
parent 935acf4f3c
commit 6876dcdf23
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@
#define CONFIGDIR "/var/tuxbox/config"
#endif
#define CONFIGFILE CONFIGDIR "/zapit/zapit.conf"
#define ZAPITCONFIGFILE CONFIGDIR "/zapit/zapit.conf"
#define MOTORCONFIGFILE CONFIGDIR "/zapit/motor.conf"
#define SATCONFIG CONFIGDIR "/zapit/sat.conf"
#define SERVICES_XML CONFIGDIR "/zapit/services.xml"

View File

@@ -206,7 +206,7 @@ void CZapit::SaveSettings(bool write)
configfile.setInt32("motorRotationSpeed", config.motorRotationSpeed);
#endif
if (configfile.getModifiedFlag())
configfile.saveConfig(CONFIGFILE);
configfile.saveConfig(ZAPITCONFIGFILE);
}
}
@@ -303,8 +303,8 @@ void CZapit::ClearVolumeMap()
void CZapit::LoadSettings()
{
if (!configfile.loadConfig(CONFIGFILE))
WARN("%s not found", CONFIGFILE);
if (!configfile.loadConfig(ZAPITCONFIGFILE))
WARN("%s not found", ZAPITCONFIGFILE);
live_channel_id = configfile.getInt64("lastChannel", 0);
lastChannelRadio = configfile.getInt64("lastChannelRadio", 0);