smurk-too / open-wiiflow-mod

Automatically exported from code.google.com/p/open-wiiflow-mod
0 stars 0 forks source link

Wiiflow does not pass arguments to plugins like CLP #173

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to write my own plugin for wiiflow and I have made a program that 
accepts command line parameters. when I run the program using WIILOAD and 
specify CLP myself the parameters are being passed correctly. When I try to 
create a plugin ini file and specify the CLP in the Arguments section of the 
ini and attempt to run the program from wiiflow none of the parameters are 
being passed.  Which begs the question if arguments are not passed to plugins. 
What are they for?

How can I pass something like this to my program from within a plugin:-

<program.dol> <%1 Command line Parameter> <Path To file>
Play.dol /mp3 usb:/mp3/<mp3 file>
or
Play.dol /flac usb:/flac/<flac file>

I have tried it with homebrew channel and wiiload with good results but cannot 
get it working from wiiflow with the following ini

dolfile=play.dol
arguments=/mp3 {device}:/{path}/{name}

also tried
arguments="/mp3 " {device}:/{path}/{name}

Is there a solution or can i rule out using wiiflow to run my program?

Original issue reported on code.google.com by sion.zap...@gmail.com on 28 Feb 2013 at 2:52

GoogleCodeExporter commented 8 years ago
Thats easy to do, the tricks are | to do multiple arguments, you dont want to 
use spaces or whatever, just use | to say wiiflow to use argument number two. 
So, if you want something like Play.dol /mp3 usb:/mp3/<mp3 file> in args form, 
may try 
arguments=/mp3|{device}:/{path}/{name}
That should do the trick.

Original comment by fix94.1 on 28 Feb 2013 at 9:27

GoogleCodeExporter commented 8 years ago
Mate you are amazing.  :0).  That just opened up a world of posibilities.

Cheers

Original comment by sion.zap...@gmail.com on 28 Feb 2013 at 10:09

GoogleCodeExporter commented 8 years ago

Original comment by fix94.1 on 23 Mar 2013 at 5:04