mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
zapit/src/zapit.cpp: rename CONFIGFILE to ZAPITCONFIGFILE to avoid conflicts
This commit is contained in:
@@ -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"
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user