Set up default viewers.config
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4682 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9ca74798b6
commit
0d53b48e0d
2 changed files with 17 additions and 0 deletions
5
apps/plugins/viewers.config
Normal file
5
apps/plugins/viewers.config
Normal file
|
@ -0,0 +1,5 @@
|
|||
ch8,chip8.rock,70 70 7f 7f 70 70
|
||||
txt,viewer.rock,55 55 55 55 55 55
|
||||
jpg,jpeg.rock,18 24 3C 3C 24 18
|
||||
ucl,firmware_flash.rock,2A 7F 41 41 7F 2A
|
||||
rvf,video.rock,5D 7F 5D 7F 5D 7F
|
|
@ -29,6 +29,18 @@ sub buildzip {
|
|||
if($notplayer) {
|
||||
`cp ../apps/plugins/sokoban.levels .rockbox/`; # sokoban levels
|
||||
|
||||
open VIEWERS, "../apps/plugins/viewers.config" or
|
||||
die "can't open viewers.config";
|
||||
@viewers = <VIEWERS>;
|
||||
close VIEWERS;
|
||||
`cp ../apps/plugins/viewers.config .rockbox`;
|
||||
mkdir ".rockbox/viewers";
|
||||
for (@viewers) {
|
||||
if (/,(.+),/) {
|
||||
`mv .rockbox/rocks/$1 .rockbox/viewers`;
|
||||
}
|
||||
}
|
||||
|
||||
mkdir ".rockbox/fonts", 0777;
|
||||
|
||||
opendir(DIR, "../fonts") || die "can't open dir fonts";
|
||||
|
|
Loading…
Reference in a new issue