diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-10 20:56:20 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-10 20:56:20 +0000 |
| commit | 8ef97f8db590f1b4a3692b236de8dc7a21926d5c (patch) | |
| tree | 72ded3111539d29bdbfb77f3c7ae28267009ca48 | |
| parent | 9cb9c821a026fcc9dd15e09415fec298ca39c28b (diff) | |
| download | rockbox-8ef97f8db590f1b4a3692b236de8dc7a21926d5c.zip rockbox-8ef97f8db590f1b4a3692b236de8dc7a21926d5c.tar.gz rockbox-8ef97f8db590f1b4a3692b236de8dc7a21926d5c.tar.bz2 rockbox-8ef97f8db590f1b4a3692b236de8dc7a21926d5c.tar.xz | |
Patch #701103, invert option added to .cfg, plus changed AVC handling when saving .cfg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3424 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/settings.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/apps/settings.c b/apps/settings.c index a2ef3f8..ea88a05 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1099,7 +1099,7 @@ bool settings_save_config(void) strncpy(buf, "# >>> .cfg file created by rockbox <<<\r\n", sizeof(buf)); write(fd, buf, strlen(buf)); - strncpy(buf, "# >>> http://rockbox.haxx.se <<<\r\n\r\n", sizeof(buf)); + strncpy(buf, "# >>> http://rockbox.haxx.se <<<\r\n#\r\n", sizeof(buf)); write(fd, buf, strlen(buf)); snprintf(buf, sizeof(buf), "#\r\n# wps / language / font \r\n#\r\n"); @@ -1162,8 +1162,12 @@ bool settings_save_config(void) snprintf(buf, sizeof(buf), "bass boost: %d\r\n", value); write(fd, buf, strlen(buf)); - snprintf(buf, sizeof(buf), "auto volume: %d\r\n", global_settings.avc); - write(fd, buf, strlen(buf)); + { + static char* options[] = {"off", "2", "4", "8" }; + snprintf(buf, sizeof(buf), "auto volume: %s\r\n", + options[global_settings.avc]); + write(fd, buf, strlen(buf)); + } #endif snprintf(buf, sizeof(buf), "#\r\n# Playback\r\n#\r\n"); @@ -1300,6 +1304,13 @@ bool settings_save_config(void) write(fd, buf, strlen(buf)); #ifdef HAVE_LCD_BITMAP + { + static char* options[] = {"off","on"}; + snprintf(buf, sizeof(buf), "invert: %s\r\n", + options[global_settings.invert]); + write(fd, buf, strlen(buf)); + } + snprintf(buf, sizeof(buf), "peak meter release: %d\r\n", global_settings.peak_meter_release); write(fd, buf, strlen(buf)); |