summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 87d0724b48..ee7fa36d39 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -74,7 +74,6 @@
74#ifdef HAVE_LCD_COLOR 74#ifdef HAVE_LCD_COLOR
75#include "backdrop.h" 75#include "backdrop.h"
76#endif 76#endif
77#include "tree.h"
78 77
79#ifdef CONFIG_TUNER 78#ifdef CONFIG_TUNER
80#include "radio.h" 79#include "radio.h"
@@ -1014,11 +1013,6 @@ int settings_save( void )
1014 MAX_FILENAME); 1013 MAX_FILENAME);
1015 i+= MAX_FILENAME; 1014 i+= MAX_FILENAME;
1016#endif 1015#endif
1017#ifdef HAVE_RECORDING
1018 strncpy((char *)&config_block[i], (char *)global_settings.rec_path,
1019 MAX_PATH);
1020 i+= MAX_PATH;
1021#endif
1022 1016
1023 if(save_config_buffer()) 1017 if(save_config_buffer())
1024 { 1018 {
@@ -1416,11 +1410,6 @@ void settings_load(int which)
1416 MAX_FILENAME); 1410 MAX_FILENAME);
1417 i+= MAX_FILENAME; 1411 i+= MAX_FILENAME;
1418#endif 1412#endif
1419#ifdef HAVE_RECORDING
1420 strncpy((char *)global_settings.rec_path, (char *)&config_block[i],
1421 MAX_PATH);
1422 i+= MAX_PATH;
1423#endif
1424 } 1413 }
1425} 1414}
1426 1415
@@ -1780,11 +1769,6 @@ bool settings_save_config(void)
1780 global_settings.kbd_file); 1769 global_settings.kbd_file);
1781#endif 1770#endif
1782 1771
1783#ifdef HAVE_RECORDING
1784 if (global_settings.rec_path[0] != 0)
1785 fdprintf(fd, "recording path: %s\r\n", global_settings.rec_path);
1786#endif
1787
1788 /* here's the action: write values to file, specified via table */ 1772 /* here's the action: write values to file, specified via table */
1789 save_cfg_table(rtc_bits, sizeof(rtc_bits)/sizeof(rtc_bits[0]), fd); 1773 save_cfg_table(rtc_bits, sizeof(rtc_bits)/sizeof(rtc_bits[0]), fd);
1790 save_cfg_table(hd_bits, sizeof(hd_bits)/sizeof(hd_bits[0]), fd); 1774 save_cfg_table(hd_bits, sizeof(hd_bits)/sizeof(hd_bits[0]), fd);
@@ -1879,9 +1863,6 @@ void settings_reset(void) {
1879#ifdef HAVE_LCD_BITMAP 1863#ifdef HAVE_LCD_BITMAP
1880 global_settings.kbd_file[0] = '\0'; 1864 global_settings.kbd_file[0] = '\0';
1881#endif 1865#endif
1882#ifdef HAVE_RECORDING
1883 global_settings.rec_path[0] = '\0';
1884#endif
1885 global_settings.hold_lr_for_scroll_in_list = true; 1866 global_settings.hold_lr_for_scroll_in_list = true;
1886} 1867}
1887 1868
@@ -2167,12 +2148,3 @@ void settings_apply_trigger(void)
2167 ); 2148 );
2168} 2149}
2169#endif 2150#endif
2170#ifdef HAVE_RECORDING
2171void set_recpath(void)
2172{
2173 if(global_settings.rec_directory)
2174 getcwd(global_settings.rec_path, MAX_PATH);
2175 else
2176 strncpy(global_settings.rec_path, rec_base_directory, MAX_PATH);
2177}
2178#endif