Hello,
It might be useful to have the unused system/vector evaluate when the VM is closed. It could set the system/state port to a non-zero value, allowing the vector handler to prompt the user to save or cancel. If the system/state port is zeroed by the handler the VM would resume standard event handling, otherwise it would quit as normal.
This should be backwards compatible with all programs as long as they don't write to the system/vector ports for some reason.
Best regards,
Dave
On Fri, Sep 20, 2024 at 06:34:55PM +0000, Dave VanEe wrote:
> It might be useful to have the unused system/vector evaluate when the VM is closed. It could set the system/state port to a non-zero value, allowing the vector handler to prompt the user to save or cancel. If the system/state port is zeroed by the handler the VM would resume standard event handling, otherwise it would quit as normal.
This is a great idea.
It's nice to build this at the emulator level, so that exiting the VM
outside of the program (e.g. clicking a button to close a window)
would still give the program a chance to clean up.