diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-03-26 11:33:42 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-03-26 11:33:42 +0000 |
commit | 7c4e0c8730d5b076d4db4206361bc38d5256a23f (patch) | |
tree | 43382ae25de9bfa0bbabdff7d51c32b651ad47b5 /apps/settings_menu.c | |
parent | 50d40ea43409745bc828e56af5e3879ea6b48cf1 (diff) | |
download | rockbox-7c4e0c8730d5b076d4db4206361bc38d5256a23f.tar.gz rockbox-7c4e0c8730d5b076d4db4206361bc38d5256a23f.zip |
Initial version of tagcache! There are still some bugs in the engine
and much more problems with the UI.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index ab0e21d098..e381a14595 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "database.h" | 49 | #include "database.h" |
50 | #include "dir.h" | 50 | #include "dir.h" |
51 | #include "dircache.h" | 51 | #include "dircache.h" |
52 | #include "tagcache.h" | ||
52 | #include "rbunicode.h" | 53 | #include "rbunicode.h" |
53 | #include "splash.h" | 54 | #include "splash.h" |
54 | #include "yesno.h" | 55 | #include "yesno.h" |
@@ -1259,15 +1260,15 @@ static bool next_folder(void) | |||
1259 | static bool runtimedb(void) | 1260 | static bool runtimedb(void) |
1260 | { | 1261 | { |
1261 | bool rc; | 1262 | bool rc; |
1262 | bool old = global_settings.runtimedb; | 1263 | // bool old = global_settings.runtimedb; |
1263 | 1264 | ||
1264 | rc = set_bool( str(LANG_RUNTIMEDB_ACTIVE), | 1265 | rc = set_bool( str(LANG_RUNTIMEDB_ACTIVE), |
1265 | &global_settings.runtimedb ); | 1266 | &global_settings.runtimedb ); |
1266 | if (old && !global_settings.runtimedb) | 1267 | /* if (old && !global_settings.runtimedb) |
1267 | rundb_shutdown(); | 1268 | rundb_shutdown(); |
1268 | if (!old && global_settings.runtimedb) | 1269 | if (!old && global_settings.runtimedb) |
1269 | rundb_init(); | 1270 | rundb_init(); |
1270 | 1271 | */ | |
1271 | return rc; | 1272 | return rc; |
1272 | } | 1273 | } |
1273 | 1274 | ||
@@ -1479,6 +1480,7 @@ static bool beep(void) | |||
1479 | } | 1480 | } |
1480 | #endif | 1481 | #endif |
1481 | 1482 | ||
1483 | |||
1482 | #ifdef HAVE_DIRCACHE | 1484 | #ifdef HAVE_DIRCACHE |
1483 | static bool dircache(void) | 1485 | static bool dircache(void) |
1484 | { | 1486 | { |
@@ -1497,6 +1499,16 @@ static bool dircache(void) | |||
1497 | return result; | 1499 | return result; |
1498 | } | 1500 | } |
1499 | 1501 | ||
1502 | static bool tagcache_ram(void) | ||
1503 | { | ||
1504 | bool result = set_bool_options(str(LANG_TAGCACHE), | ||
1505 | &global_settings.tagcache_ram, | ||
1506 | STR(LANG_TAGCACHE_RAM), | ||
1507 | STR(LANG_TAGCACHE_DISK), | ||
1508 | NULL); | ||
1509 | |||
1510 | return result; | ||
1511 | } | ||
1500 | #endif /* HAVE_DIRCACHE */ | 1512 | #endif /* HAVE_DIRCACHE */ |
1501 | 1513 | ||
1502 | static bool playback_settings_menu(void) | 1514 | static bool playback_settings_menu(void) |
@@ -1523,6 +1535,10 @@ static bool playback_settings_menu(void) | |||
1523 | #endif | 1535 | #endif |
1524 | { ID2P(LANG_ID3_ORDER), id3_order }, | 1536 | { ID2P(LANG_ID3_ORDER), id3_order }, |
1525 | { ID2P(LANG_NEXT_FOLDER), next_folder }, | 1537 | { ID2P(LANG_NEXT_FOLDER), next_folder }, |
1538 | #ifdef HAVE_DIRCACHE | ||
1539 | { ID2P(LANG_TAGCACHE), tagcache_ram }, | ||
1540 | #endif | ||
1541 | { ID2P(LANG_TAGCACHE_FORCE_UPDATE), tagcache_force_update }, | ||
1526 | { ID2P(LANG_RUNTIMEDB_ACTIVE), runtimedb }, | 1542 | { ID2P(LANG_RUNTIMEDB_ACTIVE), runtimedb }, |
1527 | }; | 1543 | }; |
1528 | 1544 | ||