forked from len0rd/rockbox
Lua: Add pluginlib_actions wrapper for lua scripts.
Scripts can now make use of PLA_* actions to be more target independant. Change-Id: I1b9f69e07f41b2187ecc1bad25a2c20eaaef92b4
This commit is contained in:
parent
6eeca7096d
commit
c406f94592
3 changed files with 27 additions and 1 deletions
|
|
@ -28,6 +28,12 @@ while(my $line = <STDIN>)
|
|||
$actions[$i] = sprintf("\t%s = %d,\n", $1, $i);
|
||||
$i++;
|
||||
}
|
||||
elsif($line =~ /^\s*(PLA_[^\s]+)(\s*=.*)?,\s*$/)
|
||||
{
|
||||
# PLA_* begins at LAST_ACTION_PLACEHOLDER+1, thus i+1
|
||||
$actions[$i] = sprintf("\t%s = %d,\n", $1, $i+1);
|
||||
$i++;
|
||||
}
|
||||
elsif($line =~ /^\s*(CONTEXT_[^\s]+)(\s*=.*)?,\s*$/)
|
||||
{
|
||||
$contexts[$j] = sprintf("\t%s = %d,\n", $1, $j);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue