Yes, and to follow up. What happens to any running scripts?
(The original USB disk code only worked at power up.)
When I hacked the USB disk code to work whenever a stick was inserted, I think I cheated a bit, and just unbound all the event handlers, did the USB stuff, and then rebound them (quick enough for the event loop not to overflow, and even if it did, it didn’t really matter).
That method won’t work if you want to have an interactive USB disk mode. You’ll need to cleanly shutdown the normal Teletype “app”, and then restart it on stick removal.
Really the USB disk mode is at a level above all the other modes (live, pattern, etc). It exists in parallel to the entire Teletype app. In some respects calling it the “USB disk app” is more appropriate. And it might even be wise to do that in code so that we don’t confuse it with the other modes.
On a tangent. Could we add the current “edit” script as a first class save and load target?
i.e. when saving all scenes, also save the scene that is being edited to say ttEDITs.txt. But even better, allow loading a scene directly to the edit scene.
Speaking of filenames… do you wish to add a facet regarding filenames? Do we want to change them at all? (And are we limited to FAT 8.3 length names?)