mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Lua add metadata and settings reading helper module
Adds example scripts for reading track metadata + dumping albumart and rockbox settings settings are now stored as a table of strings rather than a table of tables as it saves ~15 kb of ram without adding much complexity Change-Id: I611c312b2a60ab96e595e4710b17aedbd6c0689b
This commit is contained in:
parent
a3cbd86a51
commit
267d04d2bd
6 changed files with 342 additions and 10 deletions
|
|
@ -293,7 +293,7 @@ sub Print_Variable {
|
|||
$type = sprintf('%s[%d]', $1, $arr);
|
||||
}
|
||||
|
||||
printf "\t%s = {0x%x, %d, \"%s\"},\n", $member, $offset, $size, $type;
|
||||
printf "\t%s = \"0x%x, %d, %s\",\n", $member, $offset, $size, $type;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -303,7 +303,7 @@ if($header) #output sections to lua file [PASS 2]
|
|||
{
|
||||
print "-- Don't change this file!\n";
|
||||
printf "-- It is automatically generated %s\n", $svnrev;
|
||||
print "-- member = {offset, size, \"type\"}\n\n";
|
||||
print "-- member = \"offset, size, type\"\n\n";
|
||||
|
||||
print "--";
|
||||
foreach my $key (sort(keys %replace_type_prefix)) {
|
||||
|
|
@ -337,6 +337,7 @@ if($header) #output sections to lua file [PASS 2]
|
|||
}
|
||||
}
|
||||
}
|
||||
print "\nreturn false\n";
|
||||
#my ($user,$system,$cuser,$csystem) = times;
|
||||
#warn "Pass2 ".$user." ".$system." ".$cuser." ".$csystem."\n";
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue