From 889bcc0f763fcb31b9ac66a23199ce31746664ed Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 17 Aug 2020 11:05:26 -0400 Subject: WIP open_plugins.rock viewer OP allows you to use Open With.. to call plugins with parameters called directly it acts as a shortcut list for plugins open_plugins.rock interfaces with the open_plugin core When opened directly it acts as a viewer for the plugin.dat file this allows you to edit the paths and parameters for core shortcuts as well as your added plugins If a plugin is supplied to the viewer it is added to the dat file If instead the plugin has previously been added then it is run with the parameters you previously supplied ----------------------------------------------------------------------------- Added export to .opx files this allows shortcuts to plugins with parameters to be called from the file browser Change-Id: Ib8b05a60b049fb1d5881031ca09a07e3307d375a --- tools/buildzip.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/buildzip.pl b/tools/buildzip.pl index ce225139ef..4b15771333 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -518,6 +518,12 @@ sub buildzip { copy("$ROOT/apps/tagnavi.config", "$temp_dir/"); copy("$ROOT/apps/plugins/disktidy.config", "$temp_dir/rocks/apps/"); + if(-e "$temp_dir/rocks/viewers/open_plugins.rock") { + my $cwd = getcwd(); + copy("$cwd/apps/plugins/open_plugins.opx", "$temp_dir/rocks/apps/open_plugins.opx") or + print STDERR "Copy failed: $cwd/apps/plugins/open_plugins.opx $!\n"; + } + if($bitmap) { copy("$ROOT/apps/plugins/sokoban.levels", "$temp_dir/rocks/games/sokoban.levels"); # sokoban levels copy("$ROOT/apps/plugins/snake2.levels", "$temp_dir/rocks/games/snake2.levels"); # snake2 levels -- cgit