Thanks for pointing that messup out .
Anyways - you'd be better served with a way to run a script from inside a script, correct? Or, some way you could have a menu that jumps to a label. I can think about ways to support this.
You pretty much read my mind there. Launching a script from a script would probably work well for the most uses. Though my "Options" script already IS a "menu that jumps to labels" so, I've kind-of already jumped the gun on that angle of approach. The only issue is that entries have to use underscores instead of spaces, for obvious reasons. Full paths make for some strange looking labels, but they work as long as there are no spaces. Just one of many reasons being able to get the individual path, filename, and extension from filesel, find, and findnot would be useful. Like I said, though, I may find a use for multi-script yet, given some time to mess with it. More options is never a bad thing.
EDIT: Maybe I should just show you what I've come up with so far. For the moment, my multi-script header looks like this:
Code:
set PREVIEW_MODE off
@options_main
set ERRORMSG ""
set OPTIONMAIN ""
filesel -o -s "InScripted Options" 0:/gm9/zeroes/Options/* OPTIONMAIN
if chk $[OPTIONMAIN] ""
goto options_main
else
goto $[OPTIONMAIN]
end
So, to add a script, you first create a zero byte file for the menu entry (with no spaces), then add the full path to that file near the top of the script as a label (@0:/gm9/zeroes/Options/<filename>), and make sure there's a reboot, poweroff, or "goto options_main" at the end to ensure isolation from the other scripts you will be adding. Make sure the header's filename starts with a 0 (I name mine "0 - Options Header.gm9" for example) so it will be at the top, and that there's an empty line at the end of every script you're adding, and then just "copy *.gm9 autorun.gm9" and there you go, instant multi-menu. Note that an extra character will be added to the end of the file for some reason. I'd suggest deleting it before compiling the SSR.
It works, but there's definitely room for improvement. Hopefully this will give you some ideas for new features.
Last edited by Kazuma77,