- First argument is a string with all the commandline arguments
- Second argument is a string with all the content of a startscript
But! Passing a startscript filename as a commandline argument makes Spring uses it!
So there are two ways to use Spring.Restart
- With a string containing a script filename as first argument, and "" as second argument.
- With a dummy commandline argument such as "-s" as first argument and a startscript content as second argument
For testing:
- Kernel_Panic_4.4.sd7: a version of Kernel Panic where my single player widget use something akin to Spring.Restart("-s",VFS.LoadFile("MyStartScript.txt"))
- Kernel_Panic_4.4TL1.sd7: a version of Kernel Panic where my single player widget use something akin to Spring.Restart("MyStartScript.txt","")
Can you test my single player menu of each of this two KP version, and tell me if it works in, both, none, or either?
Note: To test my single player menu, play alone, press esc to bring up the menu, then click "skirmish" and "run". Ideally it should close Spring and reopen a new Spring instance with random skirmish game.
As dev:
Can you tell me if I understood right the usage of Spring.Restart, and why does my widget doesn't work for so many Linux people, is it a bug in Linux implementation of Spring.Restart, or am I using Spring.Restart wrongly?