Sunday, April 1, 2018

Keen Modding Live - Close confirmation fix

Abiathar Live Studio has to automate a lot of project opening and closing when setting up local copies of live levels. This works great if it's managing all projects involved in the shuffle, but I had not previously tested it when non-live projects are open. If a non-live project with unsaved changes is still up when a newly created or cloned live level is opened, the "save changes before closing?" dialog will open as normal, but trying to cancel will cause Abiathar to crash.

This happens because the Abiathar Live Studio extension doesn't check whether the vanilla project-opening method actually opened the project it wanted. So I added a bit of post-open validation and made the appropriate functions bail out if the open was canceled.

No comments:

Post a Comment