I've now taken a very close look at all of these the only ones I've left alone are the 3 in main. As I said, they aren't normally active.
The one in bank, is actually part of a routine to see if an instrument name has a number prefix, so the simple answer was to revert to using string2int - zero here gets regarded as no number. The one in MasterUI is for choosing new instances and insists on a number > 0 so I check for it starting with a digit (new function) and if it's not I fake a zero, again no problem with that. The most likely cause for all of this is in MiscGui.h. These functions are for the values returned by the window text positions/sizes and one of these could indeed have been responsible for the error because the files are easily corrupted or removed, but that is not actually a problem because values are checked anyway and set to sensible ones if invalid, so I just changed these calls to string2int. -- Will J Godfrey https://willgodfrey.bandcamp.com/ http://yoshimi.github.io 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-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel