summaryrefslogtreecommitdiffstats
path: root/tools/songdb.pl
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-07-08 21:59:00 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-07-08 21:59:00 +0000
commit233b782a85a415e73661cff84fb0eafc4b530fed (patch)
tree22bd8bbeb23534026165e45a3868dd452f72b559 /tools/songdb.pl
parentc7430a7691f9bb79bdecd956b6d2c9b6f9877af9 (diff)
downloadrockbox-233b782a85a415e73661cff84fb0eafc4b530fed.tar.gz
rockbox-233b782a85a415e73661cff84fb0eafc4b530fed.tar.bz2
rockbox-233b782a85a415e73661cff84fb0eafc4b530fed.zip
Proper sorting, explanation of the extra field.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7079 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/songdb.pl')
-rwxr-xr-xtools/songdb.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl
index f4cea8996f..cfa18f221c 100755
--- a/tools/songdb.pl
+++ b/tools/songdb.pl
@@ -710,14 +710,14 @@ if ($db) {
#### TABLE of file names ###
# path1
- for $f (sort keys %entries) {
+ for (sort {uc($a) cmp uc($b)} %entries) {
my $str = $f."\x00" x ($maxfilelen- length($f));
my $id3 = $entries{$f};
print DB $str;
#print STDERR "CRC: ".."\n";
dumpint($id3->{'FILECRC'}); # CRC32 of the song data
dumpint($id3->{'songoffset'}); # offset to song data
- dumpint(-1); # what's this for?
+ dumpint(-1); # offset to rundb data. always set to -1. this is updated by rockbox code on the player.
}
close(DB);