summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-09-14 11:56:50 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-09-14 11:56:50 +0000
commit9928e3418f67fe6d2f82292ddbddcf56ae20b8f6 (patch)
tree397b13a537a476feb77b7d052250b98055924aec /tools/buildzip.pl
parent0928cdf074c8991f470fa0d96e6d4f828998b643 (diff)
downloadrockbox-9928e3418f67fe6d2f82292ddbddcf56ae20b8f6.tar.gz
rockbox-9928e3418f67fe6d2f82292ddbddcf56ae20b8f6.zip
Another major skin backend update/hopefully bugfix:
Skins are now more self contained in the skin manager which in the future might allow on demand skin loading (i.e smaller skin buffers) Skin backdrops are also managed more intelegently (fixes a bug where you can get a crazy backdrop loaded if a .sbs fails to load) the rockbox_default rescue theme is now called rockbox_failsafe to better express what it actually is. This commit hopefully/maybe fixes the heavily reported data aborts, so please check if you are getting them git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28073 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-xtools/buildzip.pl43
1 files changed, 42 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index e0b0bbb5de..e299d7c02a 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -305,6 +305,47 @@ sub filesize {
305 return $size; 305 return $size;
306} 306}
307 307
308sub create_failsafefiles {
309 my ($dir) = @_;
310 my $text = "# Dummy file to allow Rockbox to reset to the default skin config.
311# Do not edit this file. It's never actually loaded by Rockbox.";
312 open (FOO, ">$dir/wps/rockbox_failsafe.wps");
313 print FOO $text;
314 close(FOO);
315 open (FOO, ">$dir/wps/rockbox_failsafe.rwps");
316 print FOO $text;
317 close(FOO);
318 open (FOO, ">$dir/wps/rockbox_failsafe.sbs");
319 print FOO $text;
320 close(FOO);
321 open (FOO, ">$dir/wps/rockbox_failsafe.rsbs");
322 print FOO $text;
323 close(FOO);
324 open (FOO, ">$dir/wps/rockbox_failsafe.fms");
325 print FOO $text;
326 close(FOO);
327 open (FOO, ">$dir/wps/rockbox_failsafe.rfms");
328 print FOO $text;
329 close(FOO);
330 open (FOO, ">$dir/themes/rockbox_failsafe.cfg");
331 print FOO <<STOP
332# This config has been autogenerated to reload the failsafe setup
333wps: $dir/wps/rockbox_failsafe.wps
334rwps: $dir/wps/rockbox_failsafe.rwps
335sbs: $dir/wps/rockbox_failsafe.sbs
336rsbs: $dir/wps/rockbox_failsafe.rsbs
337fms: $dir/wps/rockbox_failsafe.fms
338rfms: $dir/wps/rockbox_failsafe.rfms
339statusbar: top
340font: 08-Schumacher-Clean.fnt
341foreground color: 000000
342background color: B6C6E5
343selector type: bar (inverse)
344STOP
345;
346 close(FOO);
347}
348
308sub buildzip { 349sub buildzip {
309 my ($image, $fonts)=@_; 350 my ($image, $fonts)=@_;
310 my $libdir = $install; 351 my $libdir = $install;
@@ -508,6 +549,7 @@ STOP
508 "$temp_dir/rocks/demos/pictureflow_splash.bmp"); 549 "$temp_dir/rocks/demos/pictureflow_splash.bmp");
509 550
510 } 551 }
552 create_failsafefiles($temp_dir);
511 553
512 if($image) { 554 if($image) {
513 # image is blank when this is a simulator 555 # image is blank when this is a simulator
@@ -572,7 +614,6 @@ STOP
572 } else { 614 } else {
573 copy("$ROOT/wps/classic_statusbar.112x64x1.sbs", "$temp_dir/wps/classic_statusbar.sbs"); 615 copy("$ROOT/wps/classic_statusbar.112x64x1.sbs", "$temp_dir/wps/classic_statusbar.sbs");
574 } 616 }
575 system("touch $temp_dir/wps/rockbox_none.sbs");
576 if ($remote_depth != $depth) { 617 if ($remote_depth != $depth) {
577 copy("$ROOT/wps/classic_statusbar.mono.sbs", "$temp_dir/wps/classic_statusbar.rsbs"); 618 copy("$ROOT/wps/classic_statusbar.mono.sbs", "$temp_dir/wps/classic_statusbar.rsbs");
578 } else { 619 } else {