diff options
| author | Dan Everton <dan@iocaine.org> | 2007-12-07 10:59:07 +0000 |
|---|---|---|
| committer | Dan Everton <dan@iocaine.org> | 2007-12-07 10:59:07 +0000 |
| commit | 5886efabf5e4c96a8a96836d665aad935c727e31 (patch) | |
| tree | dfff344379b09bf0de89530393390113585658c0 /apps/settings.c | |
| parent | 05007e1a79fa9d9bb5985e0f6195871ea5ea71a6 (diff) | |
| download | rockbox-5886efabf5e4c96a8a96836d665aad935c727e31.zip rockbox-5886efabf5e4c96a8a96836d665aad935c727e31.tar.gz rockbox-5886efabf5e4c96a8a96836d665aad935c727e31.tar.bz2 rockbox-5886efabf5e4c96a8a96836d665aad935c727e31.tar.xz | |
Save some bytes and reuse the settings saving code for eq preset saving.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index b22c521..7f0de3e 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -477,6 +477,11 @@ static bool settings_write_config(char* filename, int options) ((settings[i].flags&F_RECSETTING) == 0)) continue; #endif +#if CONFIG_CODEC == SWCODEC + else if ((options == SETTINGS_SAVE_EQPRESET) && + ((settings[i].flags&F_EQSETTING) == 0)) + continue; +#endif switch (settings[i].flags&F_T_MASK) { case F_T_INT: @@ -614,6 +619,11 @@ bool settings_save_config(int options) folder = RECPRESETS_DIR; break; #endif +#if CONFIG_CODEC == SWCODEC + case SETTINGS_SAVE_EQPRESET: + folder = EQS_DIR; + break; +#endif default: folder = ROCKBOX_DIR; } |