Some time ago somebody asked about being able to load several instances at
once when starting Yoshimi. In the current master this is now in place as a
The way this works is that when closing the main instance (0) it first scans
through to see if any others are open, and saves the result to its config file
before closing everything down.
Next time you start Yoshimi it creates a list of active instances from the
config file and once the main instance is up and running it scans this list and
restarts the same instances.
If you had no other instances open, or had already closed them before shutting
down, then none will be re-started, so you always get back the last state.
Following on from this, if you start yoshimi with a state file, then it will
re-start what ever instances were running when that state file was created.
So, one state file could re-start instance 1, 4 and 7, while a different state
file might open instances 3, 5, 7 and 10.
As I said, this is a trial and the feature is 'always on'. I don't know if this
should be switchable or not. It is fully backwards compatible, older Yoshimi
versions will simply ignore the extra data in the config file, and loading old
configs will simply start just the main instance as before.
An oddity I discovered when doing this is that there seems to be no limit to
the number of instances that can be spawned, which seems a bit dangerous. Also,
you can have any IDs you like and they don't have to be consecutive.
However, this system will only recognise ones with IDs 1 to 31.
Will J Godfrey
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Yoshimi source code is available from either:
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx