From 2525b4d981098c010703aeb19b89e6b2507565fc Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Thu, 15 Jun 2006 20:17:47 +0000 Subject: Added support for multiple rwps for same theme for different devices. Updated iCatcher theme with different rwps for H1x0 and H3x0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10126 a1c6a512-1295-4272-9138-f99709370657 --- wps/wpsbuild.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'wps/wpsbuild.pl') diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 0334133aa6..4f92b876ac 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -248,6 +248,13 @@ while() { $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; last if (-e "$wpsdir/$req_g_wps"); + + if ($isrwps) { + $req_g = $req_g . "." . $main_width . "x" . $main_height . "x" . "$main_depth"; + + $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; + last if (-e "$wpsdir/$req_g_wps"); + } } $req_t_wps = $wps_prefix . ".txt" . ".wps"; @@ -284,6 +291,9 @@ while() { elsif($l =~ /^RWPS: (.*)/i) { $rwps = $1; } + elsif($l =~ /^RWPS\.${main_width}x${main_height}x$main_depth: (.*)/i) { + $rwps = $1; + } elsif($l =~ /^Author: (.*)/i) { $author = $1; } -- cgit v1.2.3