This is just a modified version of the latest BAGSFC release that will check for a "plgargs.dat" file on the root of the card, and launch the file path written on the second line of the file. eg:
plgargs.dat
plgargs.dat
QUOTE said:/BAGSFC/bagsfc.plg
/BAGSFC/gamepak/super mario world.rar
The new version of iMenu that has yet to be released will support plugin args along with the new plugin menu I am creating.
Emulator Source Here
For those who are curious about adding plugin arg support to their programs, this code can be used to parse the plgargs.dat file. The first line or filebuf[0] will be the file path to the launched plugin while filebuf[1] will be the file to launch in the program if supported.
CODEint Get_Args(char *file, char **filebuf)
{
FILE* dat = fat_fopen(file, "rb");
if(dat)
{
int i = 0;
while(!fat_feof (dat))
{
fat_fgets(filebuf, 512, dat);
int len = strlen(filebuf);
if(filebuf[len - 1] == '\n')
filebuf[len - 1] = '';
i++;
}
fat_fclose(dat);
fat_remove(file);
return i;
}
return 0;
}